Home
last modified time | relevance | path

Searched refs:weights (Results 1 – 25 of 93) sorted by relevance

1234

/external/pdfium/core/src/fxge/fx_freetype/fxft2.5.01/src/base/
Dfxft_ftlcdfil.c39 FT_Byte* weights = library->lcd_weights; in _ft_lcd_filter_fir() local
57 fir[0] = weights[2] * val1; in _ft_lcd_filter_fir()
58 fir[1] = weights[3] * val1; in _ft_lcd_filter_fir()
59 fir[2] = weights[4] * val1; in _ft_lcd_filter_fir()
64 fir[0] += weights[1] * val1; in _ft_lcd_filter_fir()
65 fir[1] += weights[2] * val1; in _ft_lcd_filter_fir()
66 fir[2] += weights[3] * val1; in _ft_lcd_filter_fir()
67 fir[3] += weights[4] * val1; in _ft_lcd_filter_fir()
75 pix = fir[0] + weights[0] * val; in _ft_lcd_filter_fir()
76 fir[0] = fir[1] + weights[1] * val; in _ft_lcd_filter_fir()
[all …]
/external/freetype/src/base/
Dftlcdfil.c38 FT_Byte* weights = library->lcd_weights; in _ft_lcd_filter_fir() local
59 fir[0] = weights[2] * val1; in _ft_lcd_filter_fir()
60 fir[1] = weights[3] * val1; in _ft_lcd_filter_fir()
61 fir[2] = weights[4] * val1; in _ft_lcd_filter_fir()
65 fir[0] += weights[1] * val1; in _ft_lcd_filter_fir()
66 fir[1] += weights[2] * val1; in _ft_lcd_filter_fir()
67 fir[2] += weights[3] * val1; in _ft_lcd_filter_fir()
68 fir[3] += weights[4] * val1; in _ft_lcd_filter_fir()
76 pix = fir[0] + weights[0] * val; in _ft_lcd_filter_fir()
77 fir[0] = fir[1] + weights[1] * val; in _ft_lcd_filter_fir()
[all …]
/external/chromium_org/third_party/freetype/src/base/
Dftlcdfil.c38 FT_Byte* weights = library->lcd_weights; in _ft_lcd_filter_fir() local
56 fir[0] = weights[2] * val1; in _ft_lcd_filter_fir()
57 fir[1] = weights[3] * val1; in _ft_lcd_filter_fir()
58 fir[2] = weights[4] * val1; in _ft_lcd_filter_fir()
63 fir[0] += weights[1] * val1; in _ft_lcd_filter_fir()
64 fir[1] += weights[2] * val1; in _ft_lcd_filter_fir()
65 fir[2] += weights[3] * val1; in _ft_lcd_filter_fir()
66 fir[3] += weights[4] * val1; in _ft_lcd_filter_fir()
74 pix = fir[0] + weights[0] * val; in _ft_lcd_filter_fir()
75 fir[0] = fir[1] + weights[1] * val; in _ft_lcd_filter_fir()
[all …]
/external/openfst/src/include/fst/script/
Dshortest-path.h65 vector<typename Arc::Weight> weights; in ShortestPath() local
73 ArcFilter>::Construct(ifst, &weights); in ShortestPath()
78 ShortestPath(ifst, ofst, &weights, spopts); in ShortestPath()
85 ArcFilter>::Construct(ifst, &weights); in ShortestPath()
90 ShortestPath(ifst, ofst, &weights, spopts); in ShortestPath()
97 ArcFilter >::Construct(ifst, &weights); in ShortestPath()
102 ShortestPath(ifst, ofst, &weights, spopts); in ShortestPath()
109 ArcFilter>::Construct(ifst, &weights); in ShortestPath()
114 ShortestPath(ifst, ofst, &weights, spopts); in ShortestPath()
121 ArcFilter>::Construct(ifst, &weights); in ShortestPath()
[all …]
Dshortest-distance.h95 const Fst<Arc> &fst, const vector<typename Arc::Weight> *weights) {
106 vector<typename Arc::Weight> weights;
112 fst, &weights);
115 ShortestDistance(fst, &weights, sdopts);
122 fst, &weights);
126 ShortestDistance(fst, &weights, sdopts);
133 fst, &weights);
137 ShortestDistance(fst, &weights, sdopts);
145 fst, &weights);
149 ShortestDistance(fst, &weights, sdopts);
[all …]
Drmepsilon.h174 vector<typename Arc::Weight> weights; in RmEpsilon() local
176 RmEpsilonHelper(fst, &weights, opts); in RmEpsilon()
179 args->arg2->resize(weights.size()); in RmEpsilon()
180 for (unsigned i = 0; i < weights.size(); ++i) { in RmEpsilon()
181 (*args->arg2)[i] = WeightClass(weights[i]); in RmEpsilon()
/external/opencv/ml/src/
Dmlcnn.cpp635 CvMat* connect_mask, CvMat* weights )
656 CV_CALL(layer->weights = cvCreateMat( n_output_planes, K*K+1, CV_32FC1 ));
659 if( weights )
661 if( !ICV_IS_MAT_OF_TYPE( weights, CV_32FC1 ) )
663 if( !CV_ARE_SIZES_EQ( weights, layer->weights ) )
665 CV_CALL(cvCopy( weights, layer->weights ));
670 cvRandArr( &rng, layer->weights, CV_RAND_UNI, cvRealScalar(-1), cvRealScalar(1) );
688 cvReleaseMat( &layer->weights );
700 float init_learn_rate, int learn_rate_decrease_type, CvMat* weights )
733 CV_CALL(layer->weights = cvCreateMat( n_output_planes, 2, CV_32FC1 ));
[all …]
Dmlboost.cpp185 const double* weights = ensemble->get_subtree_weights()->data.db; in calc_node_dir() local
200 double w = weights[i]; in calc_node_dir()
221 double w = weights[idx]; in calc_node_dir()
229 double w = weights[idx]; in calc_node_dir()
249 const double* weights = ensemble->get_subtree_weights()->data.db; in find_split_ord_class() local
252 const double* rcw0 = weights + n; in find_split_ord_class()
263 double w = weights[idx]; in find_split_ord_class()
278 double w = weights[idx], w2 = w*w; in find_split_ord_class()
303 double w = weights[idx]; in find_split_ord_class()
341 const double* weights = ensemble->get_subtree_weights()->data.db; in CV_IMPLEMENT_QSORT_EX() local
[all …]
Dmlem.cpp74 means = weights = probs = inv_eigen_values = log_weight_div_det = 0; in CvEM()
81 means = weights = probs = inv_eigen_values = log_weight_div_det = 0; in CvEM()
99 cvReleaseMat( &weights ); in clear()
156 const CvMat* p = params.weights; in set_params()
178 if( params.weights ) in set_params()
180 const CvMat* w = params.weights; in set_params()
344 CV_CALL( weights = cvCreateMat( 1, nclusters, CV_64FC1 )); in train()
429 if( params.weights && params.covs ) in init_em()
432 cvReshape( weights, weights, 1, params.weights->rows ); in init_em()
433 cvConvert( params.weights, weights ); in init_em()
[all …]
Dmlann_mlp.cpp97 weights = 0; in CvANN_MLP()
110 weights = 0; in CvANN_MLP()
127 cvFree( &weights ); in clear()
185 double* w = weights[i]; in init_weights()
254 CV_CALL( weights = (double**)cvAlloc( (l_count+1)*sizeof(weights[0]) )); in create()
256 weights[0] = wbuf->data.db; in create()
257 weights[1] = weights[0] + l_dst[0]*2; in create()
259 weights[i+1] = weights[i] + (l_dst[i-1] + 1)*l_dst[i]; in create()
260 weights[l_count+1] = weights[l_count] + l_dst[l_count-1]*2; in create()
324 cvInitMatHeader( &_w, layer_in->cols, layer_out->cols, CV_64F, weights[j] ); in predict()
[all …]
/external/clang/test/Profile/
Dc-general.c213 static int weights[] = {1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5}; in switches() local
216 switch (weights[0]) { in switches()
225 for (int i = 0, len = sizeof(weights) / sizeof(weights[0]); i < len; ++i) { in switches()
228 switch (i[weights]) { in switches()
276 if (weights[0]) {} in switches()
/external/pdfium/core/src/fxge/fx_freetype/fxft2.5.01/src/type1/
Dt1load.c259 mm_weights_unmap( FT_Fixed* weights, in mm_weights_unmap() argument
266 axiscoords[0] = weights[1]; in mm_weights_unmap()
270 axiscoords[0] = weights[3] + weights[1]; in mm_weights_unmap()
271 axiscoords[1] = weights[3] + weights[2]; in mm_weights_unmap()
276 axiscoords[0] = weights[7] + weights[5] + weights[3] + weights[1]; in mm_weights_unmap()
277 axiscoords[1] = weights[7] + weights[6] + weights[3] + weights[2]; in mm_weights_unmap()
278 axiscoords[2] = weights[7] + weights[6] + weights[5] + weights[4]; in mm_weights_unmap()
283 axiscoords[0] = weights[15] + weights[13] + weights[11] + weights[9] + in mm_weights_unmap()
284 weights[7] + weights[5] + weights[3] + weights[1]; in mm_weights_unmap()
285 axiscoords[1] = weights[15] + weights[14] + weights[11] + weights[10] + in mm_weights_unmap()
[all …]
/external/eigen/unsupported/Eigen/src/MatrixFunctions/
DMatrixLogarithm.h238 …const RealScalar weights[] = { 0.2777777777777777777777777777777778L, 0.44444444444444444444444444… in computePade3() local
244 result += weights[k] * (MatrixType::Identity(T.rows(), T.rows()) + nodes[k] * TminusI) in computePade3()
254 …const RealScalar weights[] = { 0.1739274225687269286865319746109997L, 0.32607257743127307131346802… in computePade4() local
260 result += weights[k] * (MatrixType::Identity(T.rows(), T.rows()) + nodes[k] * TminusI) in computePade4()
271 …const RealScalar weights[] = { 0.1184634425280945437571320203599587L, 0.23931433524968323402064575… in computePade5() local
278 result += weights[k] * (MatrixType::Identity(T.rows(), T.rows()) + nodes[k] * TminusI) in computePade5()
289 …const RealScalar weights[] = { 0.0856622461895851725201480710863665L, 0.18038078652406930378491675… in computePade6() local
296 result += weights[k] * (MatrixType::Identity(T.rows(), T.rows()) + nodes[k] * TminusI) in computePade6()
308 …const RealScalar weights[] = { 0.0647424830844348466353057163395410L, 0.13985269574463833395073388… in computePade7() local
316 result += weights[k] * (MatrixType::Identity(T.rows(), T.rows()) + nodes[k] * TminusI) in computePade7()
[all …]
/external/chromium_org/third_party/opus/src/src/
Dmlp_train.c58 net->weights = malloc((nbLayers-1)*sizeof(net->weights)); in mlp_init()
59 net->best_weights = malloc((nbLayers-1)*sizeof(net->weights)); in mlp_init()
62 net->weights[i] = malloc((topo[i]+1)*topo[i+1]*sizeof(net->weights[0][0])); in mlp_init()
63 net->best_weights[i] = malloc((topo[i]+1)*topo[i+1]*sizeof(net->weights[0][0])); in mlp_init()
83 net->weights[0][k*(topo[0]+1)+j+1] = randn(std); in mlp_init()
90 sum += inMean[k]*net->weights[0][j*(topo[0]+1)+k+1]; in mlp_init()
91 net->weights[0][j*(topo[0]+1)] = -sum; in mlp_init()
101 net->weights[nbLayers-2][j*(topo[nbLayers-2]+1)] = mean; in mlp_init()
103 net->weights[nbLayers-2][j*(topo[nbLayers-2]+1)+k+1] = randn(std); in mlp_init()
132 W0 = net->weights[0]; in compute_gradient()
[all …]
Dmlp_data.c8 static const float weights[422] = { variable
104 weights
/external/libopus/src/
Dmlp_data.c8 static const float weights[422] = { variable
104 weights
/external/openfst/src/include/fst/
Daccumulator.h188 vector<double> &weights = *data_->Weights(); in SetState() local
199 state_weights_ = &(weights[pos]); in SetState()
248 vector<double> &weights = *data_->Weights(); variable
250 if (!weights.empty() || arc_limit_ < arc_period_) {
263 weights.push_back(sum);
271 weights.push_back(sum);
356 delete it->second.weights; in ~CacheLogAccumulatorData()
365 return it->second.weights; in GetWeights()
371 void AddWeights(StateId s, vector<double> *weights) { in AddWeights() argument
374 cache_.insert(make_pair(s, CacheState(weights, true))); in AddWeights()
[all …]
/external/llvm/docs/
DBranchWeightMetadata.rst11 Branch Weight Metadata represents branch weights as its likeliness to be taken
17 Branch weights might be fetch from the profiling file, or generated based on
20 All weights are represented as an unsigned 32-bit values, where higher value
43 Branch weights are assigned to every case (including the ``default`` case which
57 Branch weights are assigned to every destination.
/external/chromium_org/ui/file_manager/gallery/js/image_editor/
Dfilter.js216 filter.convolve5x5 = function(weights, dst, src, offsetX, offsetY) { argument
217 var w0 = filter.floatToFixedPoint(weights[0]);
218 var w1 = filter.floatToFixedPoint(weights[1]);
219 var w2 = filter.floatToFixedPoint(weights[2]);
220 var w3 = filter.floatToFixedPoint(weights[3]);
438 filter.createConvolutionFilter = function(weights) { argument
441 for (var i = 0; i != weights.length; i++) {
442 total += weights[i] * (i ? 4 : 1);
446 for (i = 0; i != weights.length; i++) {
447 normalized.push(weights[i] / total);
/external/deqp/modules/gles2/stress/
Des2sDrawTests.cpp211 float weights[SIZE]; member
216 weights[i] = 1.0f; in UniformWeightArray()
323 …pec::Primitive> (DE_ARRAY_BEGIN(primitives), DE_ARRAY_END(primitives), primitiveWeights.weights); in init()
325 …:DrawMethod> (DE_ARRAY_BEGIN(drawMethods), DE_ARRAY_END(drawMethods), drawMethodWeights.weights); in init()
326 …pec::IndexType> (DE_ARRAY_BEGIN(indexTypes), DE_ARRAY_END(indexTypes), indexTypeWeights.weights); in init()
328 …TestSpec::Storage> (DE_ARRAY_BEGIN(storages), DE_ARRAY_END(storages), storageWeights.weights); in init()
343 …pec::InputType> (DE_ARRAY_BEGIN(inputTypes), DE_ARRAY_END(inputTypes), inputTypeWeights.weights); in init()
344 …:OutputType> (DE_ARRAY_BEGIN(outputTypes), DE_ARRAY_END(outputTypes), outputTypeWeights.weights); in init()
345 …TestSpec::Storage> (DE_ARRAY_BEGIN(storages), DE_ARRAY_END(storages), storageWeights.weights); in init()
346 …ls::DrawTestSpec::Usage> (DE_ARRAY_BEGIN(usages), DE_ARRAY_END(usages), usageWeights.weights); in init()
/external/opencv/cv/src/
Dcvlinefit.cpp46 icvFitLine2D_wods( CvPoint2D32f * points, int _count, float *weights, float *line ) in icvFitLine2D_wods() argument
56 if( weights == 0 ) in icvFitLine2D_wods()
72 x += weights[i] * points[i].x; in icvFitLine2D_wods()
73 y += weights[i] * points[i].y; in icvFitLine2D_wods()
74 x2 += weights[i] * points[i].x * points[i].x; in icvFitLine2D_wods()
75 y2 += weights[i] * points[i].y * points[i].y; in icvFitLine2D_wods()
76 xy += weights[i] * points[i].x * points[i].y; in icvFitLine2D_wods()
77 w += weights[i]; in icvFitLine2D_wods()
102 icvFitLine3D_wods( CvPoint3D32f * points, int count, float *weights, float *line ) in icvFitLine3D_wods() argument
116 if( weights ) in icvFitLine3D_wods()
[all …]
/external/chromium_org/third_party/icu/source/test/intltest/
Dwbnf.cpp439 Buffer_int weights; member in WeightedRand
446 for (int i=0; i<size; ++i) weights.append(DEFAULT_WEIGHT); in WeightedRand()
450 weights.append_array( (*weight_list),s); in WeightedRand()
451 for (int i=s; i<size; ++i) weights.append(DEFAULT_WEIGHT); in WeightedRand()
453 weights.append_array( (*weight_list),size); in WeightedRand()
457 int c = weights.content_size(); in WeightedRand()
459 total += weights[i]; in WeightedRand()
464 weights.append(weight); in append()
492 mark -= weights[i]; // 0 <= mark <= total in next()
738 Repeat(Pick * base, int minCount =0, int maxCount = 1, Buffer_int * weights = NULL): in Repeat() argument
[all …]
/external/deqp/framework/delibs/decpp/
DdeRandom.cpp151 static const float weights[] = { 0.4f, 0.6f, 1.5f, 0.5f, 1.2f, 0.3f, 0.2f, 1.4f }; in Random_selfTest() local
152 DE_STATIC_ASSERT(DE_LENGTH_OF_ARRAY(items) == DE_LENGTH_OF_ARRAY(weights)); in Random_selfTest()
157 …T(expected[i] == rnd.chooseWeighted<int>(DE_ARRAY_BEGIN(items), DE_ARRAY_END(items), &weights[0])); in Random_selfTest()
/external/deqp/modules/glshared/
DglsRasterizationTestUtil.cpp507 const LineInterpolationRange weights[4] = in calcSingleSampleLineInterpolationRange() local
515 …st tcu::Vec2 minWeights = tcu::min(tcu::min(weights[0].min, weights[1].min), tcu::min(weights[2].m… in calcSingleSampleLineInterpolationRange()
516 …st tcu::Vec2 maxWeights = tcu::max(tcu::max(weights[0].max, weights[1].max), tcu::max(weights[2].m… in calcSingleSampleLineInterpolationRange()
547 const InterpolationRange weights[4] = in interpolate() local
556 …result.min = tcu::min(tcu::min(weights[0].min, weights[1].min), tcu::min(weights[2].min, weights[3… in interpolate()
557 …result.max = tcu::max(tcu::max(weights[0].max, weights[1].max), tcu::max(weights[2].max, weights[3… in interpolate()
594 const LineInterpolationRange weights[4] = in interpolate() local
602 …st tcu::Vec2 minWeights = tcu::min(tcu::min(weights[0].min, weights[1].min), tcu::min(weights[2].m… in interpolate()
603 …st tcu::Vec2 maxWeights = tcu::max(tcu::max(weights[0].max, weights[1].max), tcu::max(weights[2].m… in interpolate()
672 …const InterpolationRange weights = interpolator.interpolate(triNdx, tcu::IVec2(x, y), viewportSize… in verifyTriangleGroupInterpolationWithInterpolator() local
[all …]
/external/deqp/modules/gles3/stress/
Des3sDrawTests.cpp403 float weights[SIZE]; member
408 weights[i] = 1.0f; in UniformWeightArray()
540 …pec::Primitive> (DE_ARRAY_BEGIN(primitives), DE_ARRAY_END(primitives), primitiveWeights.weights); in init()
542 …:DrawMethod> (DE_ARRAY_BEGIN(drawMethods), DE_ARRAY_END(drawMethods), drawMethodWeights.weights); in init()
543 …pec::IndexType> (DE_ARRAY_BEGIN(indexTypes), DE_ARRAY_END(indexTypes), indexTypeWeights.weights); in init()
545 …TestSpec::Storage> (DE_ARRAY_BEGIN(storages), DE_ARRAY_END(storages), storageWeights.weights); in init()
560 …pec::InputType> (DE_ARRAY_BEGIN(inputTypes), DE_ARRAY_END(inputTypes), inputTypeWeights.weights); in init()
561 …:OutputType> (DE_ARRAY_BEGIN(outputTypes), DE_ARRAY_END(outputTypes), outputTypeWeights.weights); in init()
562 …TestSpec::Storage> (DE_ARRAY_BEGIN(storages), DE_ARRAY_END(storages), storageWeights.weights); in init()
563 …ls::DrawTestSpec::Usage> (DE_ARRAY_BEGIN(usages), DE_ARRAY_END(usages), usageWeights.weights); in init()

1234