/cts/suite/cts/deviceTests/opengl/assets/fragment/ |
blur | 19 float weights[11]; 20 weights[0] = 0.047748641153356156; 21 weights[1] = 0.05979670798364139; 22 weights[2] = 0.07123260215138659; 23 weights[3] = 0.08071711293576822; 24 weights[4] = 0.08700369673862933; 25 weights[5] = 0.08920620580763855; 26 weights[6] = 0.08700369673862933; 27 weights[7] = 0.08071711293576822; 28 weights[8] = 0.07123260215138659 [all...] |
/external/chromium_org/third_party/opus/src/src/ |
mlp.h | 36 const float *weights; member in struct:__anon19356
|
mlp_train.c | 58 net->weights = malloc((nbLayers-1)*sizeof(net->weights)); 59 net->best_weights = malloc((nbLayers-1)*sizeof(net->weights)); 62 net->weights[i] = malloc((topo[i]+1)*topo[i+1]*sizeof(net->weights[0][0])); 63 net->best_weights[i] = malloc((topo[i]+1)*topo[i+1]*sizeof(net->weights[0][0])); 83 net->weights[0][k*(topo[0]+1)+j+1] = randn(std); 90 sum += inMean[k]*net->weights[0][j*(topo[0]+1)+k+1]; 91 net->weights[0][j*(topo[0]+1)] = -sum; 101 net->weights[nbLayers-2][j*(topo[nbLayers-2]+1)] = mean [all...] |
/external/libopus/src/ |
mlp.h | 36 const float *weights; member in struct:__anon8267
|
/frameworks/base/libs/hwui/utils/ |
Blur.h | 37 static void generateGaussianWeights(float* weights, int32_t radius); 38 static void horizontal(float* weights, int32_t radius, const uint8_t* source, 40 static void vertical(float* weights, int32_t radius, const uint8_t* source,
|
Blur.cpp | 63 void Blur::generateGaussianWeights(float* weights, int32_t radius) { 64 // Compute gaussian weights for the blur 83 weights[r + radius] = coeff1 * pow(e, floatR * floatR * coeff2); 84 normalizeFactor += weights[r + radius]; 87 //Now we need to normalize the weights because all our coefficients need to add up to one 90 weights[r + radius] *= normalizeFactor; 94 void Blur::horizontal(float* weights, int32_t radius, 106 const float* gPtr = weights; 138 void Blur::vertical(float* weights, int32_t radius, 148 const float* gPtr = weights; [all...] |
/external/chromium_org/third_party/freetype/src/base/ |
ftlcdfil.c | 38 FT_Byte* weights = library->lcd_weights; local 56 fir[0] = weights[2] * val1; 57 fir[1] = weights[3] * val1; 58 fir[2] = weights[4] * val1; 63 fir[0] += weights[1] * val1; 64 fir[1] += weights[2] * val1; 65 fir[2] += weights[3] * val1; 66 fir[3] += weights[4] * val1; 74 pix = fir[0] + weights[0] * val; 75 fir[0] = fir[1] + weights[1] * val [all...] |
/external/freetype/src/base/ |
ftlcdfil.c | 38 FT_Byte* weights = library->lcd_weights; local 50 /* the values in `weights' can exceed 0xFF */ 59 fir[0] = weights[2] * val1; 60 fir[1] = weights[3] * val1; 61 fir[2] = weights[4] * val1; 65 fir[0] += weights[1] * val1; 66 fir[1] += weights[2] * val1; 67 fir[2] += weights[3] * val1; 68 fir[3] += weights[4] * val1; 76 pix = fir[0] + weights[0] * val [all...] |
/external/pdfium/core/src/fxge/fx_freetype/fxft2.5.01/src/base/ |
fxft_ftlcdfil.c | 39 FT_Byte* weights = library->lcd_weights; local 57 fir[0] = weights[2] * val1; 58 fir[1] = weights[3] * val1; 59 fir[2] = weights[4] * val1; 64 fir[0] += weights[1] * val1; 65 fir[1] += weights[2] * val1; 66 fir[2] += weights[3] * val1; 67 fir[3] += weights[4] * val1; 75 pix = fir[0] + weights[0] * val; 76 fir[0] = fir[1] + weights[1] * val [all...] |
/external/clang/test/Profile/ |
c-general.c | 120 // Never reached -> no weights 137 // Never reached -> no weights 196 // never reached -> no weights 213 static int weights[] = {1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5}; local 215 // No cases -> no weights 216 switch (weights[0]) { 225 for (int i = 0, len = sizeof(weights) / sizeof(weights[0]); i < len; ++i) { 228 switch (i[weights]) { 275 // Never reached -> no weights [all...] |
/external/chromium_org/third_party/freetype/include/freetype/ |
ftlcdfil.h | 73 * weights (as given by FT_LCD_FILTER_DEFAULT) are no longer optimal, as 75 * gamma correction. To preserve color neutrality, weights for a FIR5 77 * and the FIR weights should be 83 * This formula generates equal weights for all the color primaries 85 * set of weights is 91 * where `a' has value 0x30 and `b' value 0x20. The weights in filter 209 * Use this function to override the filter weights selected by 219 * weights :: 221 * uses them to specify the filter weights. 241 unsigned char *weights ); [all...] |
/external/freetype/include/ |
ftlcdfil.h | 73 * weights (as given by FT_LCD_FILTER_DEFAULT) are no longer optimal, as 75 * gamma correction. To preserve color neutrality, weights for a FIR5 77 * and the FIR weights should be 83 * This formula generates equal weights for all the color primaries 85 * set of weights is 91 * where `a' has value 0x30 and `b' value 0x20. The weights in filter 209 * Use this function to override the filter weights selected by 219 * weights :: 221 * uses them to specify the filter weights. 241 unsigned char *weights ); [all...] |
/external/openfst/src/include/fst/script/ |
shortest-path.h | 65 vector<typename Arc::Weight> weights; local 73 ArcFilter>::Construct(ifst, &weights); 78 ShortestPath(ifst, ofst, &weights, spopts); 85 ArcFilter>::Construct(ifst, &weights); 90 ShortestPath(ifst, ofst, &weights, spopts); 97 ArcFilter >::Construct(ifst, &weights); 102 ShortestPath(ifst, ofst, &weights, spopts); 109 ArcFilter>::Construct(ifst, &weights); 114 ShortestPath(ifst, ofst, &weights, spopts); 121 ArcFilter>::Construct(ifst, &weights); [all...] |
shortest-distance.h | 95 const Fst<Arc> &fst, const vector<typename Arc::Weight> *weights) { 106 vector<typename Arc::Weight> weights; local 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/pdfium/core/include/thirdparties/freetype/freetype/ |
ftlcdfil.h | 73 * weights (as given by FT_LCD_FILTER_DEFAULT) are no longer optimal, as 75 * gamma correction. To preserve color neutrality, weights for a FIR5 77 * and the FIR weights should be 83 * This formula generates equal weights for all the color primaries 85 * set of weights is 91 * where `a' has value 0x30 and `b' value 0x20. The weights in filter 209 * Use this function to override the filter weights selected by 219 * weights :: 221 * uses them to specify the filter weights. 241 unsigned char *weights ); [all...] |
/external/pdfium/core/src/fxge/fx_freetype/fxft2.5.01/include/freetype/ |
ftlcdfil.h | 73 * weights (as given by FT_LCD_FILTER_DEFAULT) are no longer optimal, as 75 * gamma correction. To preserve color neutrality, weights for a FIR5 77 * and the FIR weights should be 83 * This formula generates equal weights for all the color primaries 85 * set of weights is 91 * where `a' has value 0x30 and `b' value 0x20. The weights in filter 209 * Use this function to override the filter weights selected by 219 * weights :: 221 * uses them to specify the filter weights. 241 unsigned char *weights ); [all...] |
/hardware/intel/common/utils/ituxd/src/com/intel/thermal/ |
VirtualThermalZone.java | 89 Integer weights[] = sa.getWeights(); local 90 int m = weights[0]; 213 Integer weights[], order[]; local 221 weights = sa.getWeights(); 223 if (weights == null && order == null) return rawSensorTemp; 224 if (weights != null) { 227 return (weights[0] * rawSensorTemp) / 1000; 228 } else if (order != null && weights.length == order.length) { 230 // it should be of same size as weights array 232 for (int i = 0; i < weights.length; i++) [all...] |
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/java/android/bordeaux/learning/ |
StochasticLinearRanker.java | 42 public HashMap<String, Float> weights = new HashMap<String, Float>(); field in class:StochasticLinearRanker.Model 95 slrModel.weights.put(wKeys[i], wValues[i]); 109 String[] wKeys = new String[model.weights.size()]; 110 float[] wValues = new float[model.weights.size()]; 112 for (Map.Entry<String, Float> e : model.weights.entrySet()){ 144 for (Map.Entry<String, Float> e : model.weights.entrySet()) 148 Log.i(TAG, "Weights are " + Sw);
|
/external/opencv/ml/src/ |
mlcnn.cpp | 297 // 3) Update weights by the gradient descent 635 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 ) ) 662 CV_ERROR( CV_StsBadSize, "Type of initial weights matrix must be CV_32FC1" ); 663 if( !CV_ARE_SIZES_EQ( weights, layer->weights ) ) 664 CV_ERROR( CV_StsBadSize, "Invalid size of initial weights matrix" ); 665 CV_CALL(cvCopy( weights, layer->weights )) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
SensorTest.java | 44 public RunAve(float[] weights) { 45 mWeights = weights; 48 for (int i = 0; i < weights.length; i++) { 49 sum += weights[i]; 53 mDepth = weights.length;
|
/external/eigen/unsupported/Eigen/src/MatrixFunctions/ |
MatrixLogarithm.h | 238 const RealScalar weights[] = { 0.2777777777777777777777777777777778L, 0.4444444444444444444444444444444444L, local 244 result += weights[k] * (MatrixType::Identity(T.rows(), T.rows()) + nodes[k] * TminusI) 254 const RealScalar weights[] = { 0.1739274225687269286865319746109997L, 0.3260725774312730713134680253890003L, local 260 result += weights[k] * (MatrixType::Identity(T.rows(), T.rows()) + nodes[k] * TminusI) 271 const RealScalar weights[] = { 0.1184634425280945437571320203599587L, 0.2393143352496832340206457574178191L, local 278 result += weights[k] * (MatrixType::Identity(T.rows(), T.rows()) + nodes[k] * TminusI) 289 const RealScalar weights[] = { 0.0856622461895851725201480710863665L, 0.1803807865240693037849167569188581L, local 296 result += weights[k] * (MatrixType::Identity(T.rows(), T.rows()) + nodes[k] * TminusI) 308 const RealScalar weights[] = { 0.0647424830844348466353057163395410L, 0.1398526957446383339507338857118898L, local 316 result += weights[k] * (MatrixType::Identity(T.rows(), T.rows()) + nodes[k] * TminusI 328 const RealScalar weights[] = { 0.0506142681451881295762656771549811L, 0.1111905172266872352721779972131204L, local 349 const RealScalar weights[] = { 0.0406371941807872059859460790552618L, 0.0903240803474287020292360156214564L, local 371 const RealScalar weights[] = { 0.0333356721543440687967844049466659L, 0.0747256745752902965728881698288487L, local 394 const RealScalar weights[] = { 0.0278342835580868332413768602212743L, 0.0627901847324523123173471496119701L, local [all...] |
/external/pdfium/core/src/fxge/fx_freetype/fxft2.5.01/src/type1/ |
t1load.c | 255 /* Given a vector of weights, one for each design, figure out the */ 256 /* normalized axis coordinates which gave rise to those weights. */ 259 mm_weights_unmap( FT_Fixed* weights, 266 axiscoords[0] = weights[1]; 270 axiscoords[0] = weights[3] + weights[1]; 271 axiscoords[1] = weights[3] + weights[2]; 276 axiscoords[0] = weights[7] + weights[5] + weights[3] + weights[1] [all...] |
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
SaturateFilter.java | 45 "uniform vec3 weights;\n" + 49 " float kv = dot(color.rgb, weights) + shift;\n" + 57 "uniform vec3 weights;\n" + 62 " float de = dot(color.rgb, weights);\n" + 142 float weights[] = { 2f/8f, 5f/8f, 1f/8f}; local 144 mBenProgram.setHostValue("weights", weights); 147 mHerfProgram.setHostValue("weights", weights);
|
SepiaFilter.java | 103 float weights[] = { 805.0f / 2048.0f, 715.0f / 2048.0f, 557.0f / 2048.0f, local 106 mProgram.setHostValue("matrix", weights);
|
/external/srec/srec/include/ |
swimodel.h | 39 const wtdata *weights; /*pointer to weights*/ member in struct:__anon14856
|