Home
last modified time | relevance | path

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

123456

/external/libgdx/extensions/gdx-freetype/jni/freetype-2.6.2/src/base/
Dftlcdfil.c38 FT_Byte* weights = library->lcd_weights; in _ft_lcd_filter_fir() local
63 fir[0] = weights[2] * val1; in _ft_lcd_filter_fir()
64 fir[1] = weights[3] * val1; in _ft_lcd_filter_fir()
65 fir[2] = weights[4] * val1; in _ft_lcd_filter_fir()
69 fir[0] += weights[1] * val1; in _ft_lcd_filter_fir()
70 fir[1] += weights[2] * val1; in _ft_lcd_filter_fir()
71 fir[2] += weights[3] * val1; in _ft_lcd_filter_fir()
72 fir[3] += weights[4] * val1; in _ft_lcd_filter_fir()
80 pix = fir[0] + weights[0] * val; in _ft_lcd_filter_fir()
81 fir[0] = fir[1] + weights[1] * val; in _ft_lcd_filter_fir()
[all …]
/external/pdfium/third_party/freetype/src/base/
Dftlcdfil.c38 FT_Byte* weights = library->lcd_weights; in _ft_lcd_filter_fir() local
63 fir[0] = weights[2] * val1; in _ft_lcd_filter_fir()
64 fir[1] = weights[3] * val1; in _ft_lcd_filter_fir()
65 fir[2] = weights[4] * val1; in _ft_lcd_filter_fir()
69 fir[0] += weights[1] * val1; in _ft_lcd_filter_fir()
70 fir[1] += weights[2] * val1; in _ft_lcd_filter_fir()
71 fir[2] += weights[3] * val1; in _ft_lcd_filter_fir()
72 fir[3] += weights[4] * val1; in _ft_lcd_filter_fir()
80 pix = fir[0] + weights[0] * val; in _ft_lcd_filter_fir()
81 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
63 fir[0] = weights[2] * val1; in _ft_lcd_filter_fir()
64 fir[1] = weights[3] * val1; in _ft_lcd_filter_fir()
65 fir[2] = weights[4] * val1; in _ft_lcd_filter_fir()
69 fir[0] += weights[1] * val1; in _ft_lcd_filter_fir()
70 fir[1] += weights[2] * val1; in _ft_lcd_filter_fir()
71 fir[2] += weights[3] * val1; in _ft_lcd_filter_fir()
72 fir[3] += weights[4] * val1; in _ft_lcd_filter_fir()
80 pix = fir[0] + weights[0] * val; in _ft_lcd_filter_fir()
81 fir[0] = fir[1] + weights[1] * val; in _ft_lcd_filter_fir()
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/
DLeastSquaresConverter.java67 private final double[] weights; field in LeastSquaresConverter
80 this.weights = null; in LeastSquaresConverter()
113 final double[] observations, final double[] weights) in LeastSquaresConverter() argument
115 if (observations.length != weights.length) { in LeastSquaresConverter()
118 observations.length, weights.length); in LeastSquaresConverter()
122 this.weights = weights.clone(); in LeastSquaresConverter()
155 this.weights = null; in LeastSquaresConverter()
174 if (weights != null) { in value()
177 sumSquares += weights[i] * ri * ri; in value()
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/descriptive/
DAbstractUnivariateStatistic.java193 final double[] weights, in test() argument
197 if (weights == null) { in test()
201 if (weights.length != values.length) { in test()
202 throw new DimensionMismatchException(weights.length, values.length); in test()
207 if (Double.isNaN(weights[i])) { in test()
211 if (Double.isInfinite(weights[i])) { in test()
213 LocalizedFormats.INFINITE_ARRAY_ELEMENT, weights[i], i); in test()
215 if (weights[i] < 0) { in test()
217 LocalizedFormats.NEGATIVE_ELEMENT_AT_INDEX, i, weights[i]); in test()
219 if (!containsPositiveWeight && weights[i] > 0.0) { in test()
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/descriptive/moment/
DVariance.java302 public double evaluate(final double[] values, final double[] weights, in evaluate() argument
307 if (test(values, weights,begin, length)) { in evaluate()
313 double m = mean.evaluate(values, weights, begin, length); in evaluate()
314 var = evaluate(values, weights, m, begin, length); in evaluate()
358 public double evaluate(final double[] values, final double[] weights) { in evaluate() argument
359 return evaluate(values, weights, 0, values.length); in evaluate()
490 public double evaluate(final double[] values, final double[] weights, in evaluate() argument
495 if (test(values, weights, begin, length)) { in evaluate()
504 accum += weights[i] * (dev * dev); in evaluate()
505 accum2 += weights[i] * dev; in evaluate()
[all …]
DMean.java201 public double evaluate(final double[] values, final double[] weights, in evaluate() argument
203 if (test(values, weights, begin, length)) { in evaluate()
207 double sumw = sum.evaluate(weights,begin,length); in evaluate()
208 double xbarw = sum.evaluate(values, weights, begin, length) / sumw; in evaluate()
213 correction += weights[i] * (values[i] - xbarw); in evaluate()
244 public double evaluate(final double[] values, final double[] weights) { in evaluate() argument
245 return evaluate(values, weights, 0, values.length); in evaluate()
/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 …]
/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 …]
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/utils/
DDefaultTextureBinder.java44 private final int[] weights; field in DefaultTextureBinder
78 this.weights = (method == WEIGHTED) ? new int[count] : null; in DefaultTextureBinder()
91 if (weights != null) weights[i] = 0; in begin()
165 int weight = weights[0]; in bindTextureWeighted()
170 weights[i] += reuseWeight; in bindTextureWeighted()
171 } else if (weights[i] < 0 || --weights[i] < weight) { in bindTextureWeighted()
172 weight = weights[i]; in bindTextureWeighted()
178 weights[windex] = 100; in bindTextureWeighted()
/external/jmonkeyengine/engine/src/core/com/jme3/animation/
DPoseTrack.java56 float[] weights; field in PoseTrack.PoseFrame
58 public PoseFrame(Pose[] poses, float[] weights) { in PoseFrame() argument
60 this.weights = weights; in PoseFrame()
71 result.weights = this.weights.clone(); in clone()
87 out.write(weights, "weights", null); in write()
93 weights = in.readFloatArray("weights", null); in read()
108 float poseWeight = frame.weights[i] * weight; in applyFrame()
/external/chromium-trace/catapult/third_party/mapreduce/mapreduce/
Dproperty_range.py309 weights = _get_weights(_STRING_LENGTH)
310 start_ord = _str_to_ord(start, weights)
313 end_ord = _str_to_ord(end, weights)
321 splitpoints = [_ord_to_str(start_ord, weights)]
328 splitpoints.append(_ord_to_str(point, weights))
329 end_str = _ord_to_str(end_ord, weights)
353 weights = [1]
355 weights.append(weights[i-1] * len(_ALPHABET) + 1)
356 weights.reverse()
357 return weights
[all …]
/external/clang/test/Profile/
Dc-general.c217 static int weights[] = {1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5}; in switches() local
220 switch (weights[0]) { in switches()
229 for (int i = 0, len = sizeof(weights) / sizeof(weights[0]); i < len; ++i) { in switches()
232 switch (i[weights]) { in switches()
280 if (weights[0]) {} in switches()
/external/pdfium/third_party/freetype/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/libgdx/extensions/gdx-freetype/jni/freetype-2.6.2/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/apache-commons-math/src/main/java/org/apache/commons/math/analysis/interpolation/
DLoessInterpolator.java199 public final double[] smooth(final double[] xval, final double[] yval, final double[] weights) in smooth() argument
214 checkAllFiniteReal(weights, LocalizedFormats.NON_REAL_FINITE_WEIGHT); in smooth()
254 updateBandwidthInterval(xval, weights, i, bandwidthInterval); in smooth()
286 final double w = tricube(dist * denom) * robustnessWeights[k] * weights[k]; in smooth()
386 private static void updateBandwidthInterval(final double[] xval, final double[] weights, in updateBandwidthInterval() argument
394 int nextRight = nextNonzero(weights, right); in updateBandwidthInterval()
396 int nextLeft = nextNonzero(weights, bandwidthInterval[0]); in updateBandwidthInterval()
408 private static int nextNonzero(final double[] weights, final int i) { in nextNonzero() argument
410 while(j < weights.length && weights[j] == 0) { in nextNonzero()
/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/apache-commons-math/src/main/java/org/apache/commons/math/stat/descriptive/summary/
DSum.java158 public double evaluate(final double[] values, final double[] weights, in evaluate() argument
161 if (test(values, weights, begin, length)) { in evaluate()
164 sum += values[i] * weights[i]; in evaluate()
192 public double evaluate(final double[] values, final double[] weights) { in evaluate() argument
193 return evaluate(values, weights, 0, values.length); in evaluate()
DProduct.java160 public double evaluate(final double[] values, final double[] weights, in evaluate() argument
163 if (test(values, weights, begin, length)) { in evaluate()
166 product *= FastMath.pow(values[i], weights[i]); in evaluate()
195 public double evaluate(final double[] values, final double[] weights) { in evaluate() argument
196 return evaluate(values, weights, 0, values.length); in evaluate()
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/
DPick.java224 … result += items[i].getInternal(depth+1, alreadySeen) + "/" + weightedIndex.weights[i]; in getInternal()
232 for (int i = 0; i < weightedIndex.weights.length; ++i) { in match()
286 for (int i = 0; i < weightedIndex.weights.length; ++i) { in match()
618 private int[] weights = new int[0]; field in Pick.WeightedIndex
642 int oldLen = weights.length; in add()
644 weights = (int[]) realloc(weights, weights.length + maxCount); in add()
645 System.arraycopy(newWeights, 0, weights, oldLen, newWeights.length); in add()
646 int lastWeight = weights[oldLen + newWeights.length-1]; in add()
648 weights[i] = lastWeight; in add()
651 for (int i = 0; i < weights.length; ++i) { in add()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/util/
DPick.java225 … result += items[i].getInternal(depth+1, alreadySeen) + "/" + weightedIndex.weights[i]; in getInternal()
233 for (int i = 0; i < weightedIndex.weights.length; ++i) { in match()
287 for (int i = 0; i < weightedIndex.weights.length; ++i) { in match()
619 private int[] weights = new int[0]; field in Pick.WeightedIndex
643 int oldLen = weights.length; in add()
645 weights = (int[]) realloc(weights, weights.length + maxCount); in add()
646 System.arraycopy(newWeights, 0, weights, oldLen, newWeights.length); in add()
647 int lastWeight = weights[oldLen + newWeights.length-1]; in add()
649 weights[i] = lastWeight; in add()
652 for (int i = 0; i < weights.length; ++i) { in add()
[all …]
/external/jmonkeyengine/engine/src/test/jme3test/model/anim/
DTestCustomAnim.java77 FloatBuffer weights = FloatBuffer.allocate( box.getVertexCount() * 4 ); in simpleInitApp() local
79 weightsBuf.setupData(Usage.CpuOnly, 4, Format.Float, weights); in simpleInitApp()
106 weights.array()[i+0] = 1; in simpleInitApp()
107 weights.array()[i+1] = 0; in simpleInitApp()
108 weights.array()[i+2] = 0; in simpleInitApp()
109 weights.array()[i+3] = 0; in simpleInitApp()

123456