/external/opencv/ml/src/ |
mlann_mlp.cpp | 97 weights = 0; 110 weights = 0; 127 cvFree( &weights ); 185 double* w = weights[i]; 187 // initialize weights using Nguyen-Widrow algorithm 254 CV_CALL( weights = (double**)cvAlloc( (l_count+1)*sizeof(weights[0]) )); 256 weights[0] = wbuf->data.db; 257 weights[1] = weights[0] + l_dst[0]*2 [all...] |
/external/deqp/framework/delibs/decpp/ |
deRandom.cpp | 147 // chooseWeighted(first, last, weights) 151 static const float weights[] = { 0.4f, 0.6f, 1.5f, 0.5f, 1.2f, 0.3f, 0.2f, 1.4f }; 152 DE_STATIC_ASSERT(DE_LENGTH_OF_ARRAY(items) == DE_LENGTH_OF_ARRAY(weights)); 157 DE_TEST_ASSERT(expected[i] == rnd.chooseWeighted<int>(DE_ARRAY_BEGIN(items), DE_ARRAY_END(items), &weights[0]));
|
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
Learning_StochasticLinearRanker.java | 90 HashMap<String, Float> weights = new HashMap<String, Float>(); local 92 weights.put(temp.get(i).key, temp.get(i).value); 95 return mLearningSlRanker.setModelPriorWeights(weights);
|
/external/chromium_org/third_party/opus/src/src/ |
mlp.c | 97 const opus_val16 *W = m->weights; 121 const float *W = m->weights;
|
mlp_train.h | 80 double **weights; member in struct:__anon18614
|
/external/libopus/src/ |
mlp.c | 97 const opus_val16 *W = m->weights; 121 const float *W = m->weights;
|
/external/opencv/cv/src/ |
cvlinefit.cpp | 46 icvFitLine2D_wods( CvPoint2D32f * points, int _count, float *weights, float *line ) 56 if( weights == 0 ) 72 x += weights[i] * points[i].x; 73 y += weights[i] * points[i].y; 74 x2 += weights[i] * points[i].x * points[i].x; 75 y2 += weights[i] * points[i].y * points[i].y; 76 xy += weights[i] * points[i].x * points[i].y; 77 w += weights[i]; 102 icvFitLine3D_wods( CvPoint3D32f * points, int count, float *weights, float *line ) 116 if( weights ) [all...] |
/frameworks/rs/driver/runtime/ |
rs_sample.c | 268 getBilinearSample1D(const Allocation_t *alloc, float2 weights, 276 return getSample_RGBA(p, iPixel, next, weights.x, weights.y); 278 return getSample_A(p, iPixel, next, weights.x, weights.y); 281 return getSample_565(p, iPixel, next, weights.x, weights.y); 283 return getSample_RGB(p, iPixel, next, weights.x, weights.y); 285 return getSample_L(p, iPixel, next, weights.x, weights.y) 442 float2 weights; local [all...] |
/external/deqp/modules/gles2/stress/ |
es2sDrawTests.cpp | 211 float weights[SIZE]; member in struct:deqp::gles2::Stress::__anon23780::UniformWeightArray 216 weights[i] = 1.0f; 323 spec.primitive = random.chooseWeighted<gls::DrawTestSpec::Primitive> (DE_ARRAY_BEGIN(primitives), DE_ARRAY_END(primitives), primitiveWeights.weights); 325 spec.drawMethod = random.chooseWeighted<gls::DrawTestSpec::DrawMethod> (DE_ARRAY_BEGIN(drawMethods), DE_ARRAY_END(drawMethods), drawMethodWeights.weights); 326 spec.indexType = random.chooseWeighted<gls::DrawTestSpec::IndexType> (DE_ARRAY_BEGIN(indexTypes), DE_ARRAY_END(indexTypes), indexTypeWeights.weights); 328 spec.indexStorage = random.chooseWeighted<gls::DrawTestSpec::Storage> (DE_ARRAY_BEGIN(storages), DE_ARRAY_END(storages), storageWeights.weights); 343 attribSpec.inputType = random.chooseWeighted<gls::DrawTestSpec::InputType> (DE_ARRAY_BEGIN(inputTypes), DE_ARRAY_END(inputTypes), inputTypeWeights.weights); 344 attribSpec.outputType = random.chooseWeighted<gls::DrawTestSpec::OutputType> (DE_ARRAY_BEGIN(outputTypes), DE_ARRAY_END(outputTypes), outputTypeWeights.weights); 345 attribSpec.storage = random.chooseWeighted<gls::DrawTestSpec::Storage> (DE_ARRAY_BEGIN(storages), DE_ARRAY_END(storages), storageWeights.weights); 346 attribSpec.usage = random.chooseWeighted<gls::DrawTestSpec::Usage> (DE_ARRAY_BEGIN(usages), DE_ARRAY_END(usages), usageWeights.weights); [all...] |
/external/chromium_org/third_party/icu/source/test/intltest/ |
wbnf.cpp | 439 Buffer_int weights; member in class:WeightedRand 446 for (int i=0; i<size; ++i) weights.append(DEFAULT_WEIGHT); 450 weights.append_array( (*weight_list),s); 451 for (int i=s; i<size; ++i) weights.append(DEFAULT_WEIGHT); 453 weights.append_array( (*weight_list),size); 457 int c = weights.content_size(); 459 total += weights[i]; 464 weights.append(weight); 492 mark -= weights[i]; // 0 <= mark <= total 738 Repeat(Pick * base, int minCount =0, int maxCount = 1, Buffer_int * weights = NULL) 1040 Buffer_int weights; local [all...] |
/external/deqp/modules/gles31/stress/ |
es31sDrawTests.cpp | 313 float weights[SIZE]; 318 weights[i] = 1.0f; 447 spec.primitive = random.chooseWeighted<gls::DrawTestSpec::Primitive> (DE_ARRAY_BEGIN(primitives), DE_ARRAY_END(primitives), primitiveWeights.weights); 449 spec.drawMethod = random.chooseWeighted<gls::DrawTestSpec::DrawMethod> (DE_ARRAY_BEGIN(drawMethods), DE_ARRAY_END(drawMethods), drawMethodWeights.weights); 461 spec.indexType = random.chooseWeighted<gls::DrawTestSpec::IndexType> (DE_ARRAY_BEGIN(indexTypes), DE_ARRAY_END(indexTypes), indexTypeWeights.weights); 480 attribSpec.inputType = random.chooseWeighted<gls::DrawTestSpec::InputType> (DE_ARRAY_BEGIN(inputTypes), DE_ARRAY_END(inputTypes), inputTypeWeights.weights); 481 attribSpec.outputType = random.chooseWeighted<gls::DrawTestSpec::OutputType> (DE_ARRAY_BEGIN(outputTypes), DE_ARRAY_END(outputTypes), outputTypeWeights.weights); 483 attribSpec.usage = random.chooseWeighted<gls::DrawTestSpec::Usage> (DE_ARRAY_BEGIN(usages), DE_ARRAY_END(usages), usageWeights.weights);
|
/external/srec/srec/clib/ |
swimodel.c | 375 PLogMessage("loaded models %s num_hmmstates %d num_dims %d num_pdfs %d weights[0] %d\n", 387 hmmstates[i].weights = weight_ptr; 453 weightptr = spd->weights;
|
/frameworks/base/libs/hwui/ |
FontRenderer.h | 214 static void computeGaussianWeights(float* weights, int32_t radius); 215 static void horizontalBlur(float* weights, int32_t radius, const uint8_t *source, uint8_t *dest, 217 static void verticalBlur(float* weights, int32_t radius, const uint8_t *source, uint8_t *dest,
|
/external/chromium_org/ui/file_manager/file_manager/foreground/js/image_editor/ |
filter.js | 209 * @param {Array.<number>} weights See the picture above. 216 filter.convolve5x5 = function(weights, dst, src, offsetX, offsetY) { 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]); 432 * Return a convolution filter function bound to specific weights. 434 * @param {Array.<number>} weights Weights for the convolution matrix 438 filter.createConvolutionFilter = function(weights) { [all...] |
/external/chromium_org/ui/file_manager/gallery/js/image_editor/ |
filter.js | 209 * @param {Array.<number>} weights See the picture above. 216 filter.convolve5x5 = function(weights, dst, src, offsetX, offsetY) { 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]); 432 * Return a convolution filter function bound to specific weights. 434 * @param {Array.<number>} weights Weights for the convolution matrix 438 filter.createConvolutionFilter = function(weights) { [all...] |
/external/deqp/framework/randomshaders/ |
rsgStatement.cpp | 63 float weights[DE_LENGTH_OF_ARRAY(statementSpecs)]; local 65 // Compute weights 69 weights[ndx] = statementSpecs[ndx].getWeight(state); 70 sum += weights[ndx]; 85 sum += weights[ndx]; 91 else if (weights[ndx] > 0.0f) 255 // \todo [2011-05-26 pyry] Weights?
|
/external/deqp/modules/gles2/functional/ |
es2fDrawTests.cpp | 488 float weights[SIZE]; member in struct:deqp::gles2::Functional::__anon23685::UniformWeightArray 493 weights[i] = 1.0f; 600 spec.primitive = random.chooseWeighted<gls::DrawTestSpec::Primitive> (DE_ARRAY_BEGIN(primitives), DE_ARRAY_END(primitives), primitiveWeights.weights); 602 spec.drawMethod = random.chooseWeighted<gls::DrawTestSpec::DrawMethod> (DE_ARRAY_BEGIN(drawMethods), DE_ARRAY_END(drawMethods), drawMethodWeights.weights); 603 spec.indexType = random.chooseWeighted<gls::DrawTestSpec::IndexType> (DE_ARRAY_BEGIN(indexTypes), DE_ARRAY_END(indexTypes), indexTypeWeights.weights); 605 spec.indexStorage = random.chooseWeighted<gls::DrawTestSpec::Storage> (DE_ARRAY_BEGIN(storages), DE_ARRAY_END(storages), storageWeights.weights); 620 attribSpec.inputType = random.chooseWeighted<gls::DrawTestSpec::InputType> (DE_ARRAY_BEGIN(inputTypes), DE_ARRAY_END(inputTypes), inputTypeWeights.weights); 621 attribSpec.outputType = random.chooseWeighted<gls::DrawTestSpec::OutputType> (DE_ARRAY_BEGIN(outputTypes), DE_ARRAY_END(outputTypes), outputTypeWeights.weights); 622 attribSpec.storage = random.chooseWeighted<gls::DrawTestSpec::Storage> (DE_ARRAY_BEGIN(storages), DE_ARRAY_END(storages), storageWeights.weights); 623 attribSpec.usage = random.chooseWeighted<gls::DrawTestSpec::Usage> (DE_ARRAY_BEGIN(usages), DE_ARRAY_END(usages), usageWeights.weights); [all...] |
/external/deqp/modules/gles3/stress/ |
es3sDrawTests.cpp | 403 float weights[SIZE]; member in struct:deqp::gles3::Stress::__anon24061::UniformWeightArray 408 weights[i] = 1.0f; 540 spec.primitive = random.chooseWeighted<gls::DrawTestSpec::Primitive> (DE_ARRAY_BEGIN(primitives), DE_ARRAY_END(primitives), primitiveWeights.weights); 542 spec.drawMethod = random.chooseWeighted<gls::DrawTestSpec::DrawMethod> (DE_ARRAY_BEGIN(drawMethods), DE_ARRAY_END(drawMethods), drawMethodWeights.weights); 543 spec.indexType = random.chooseWeighted<gls::DrawTestSpec::IndexType> (DE_ARRAY_BEGIN(indexTypes), DE_ARRAY_END(indexTypes), indexTypeWeights.weights); 545 spec.indexStorage = random.chooseWeighted<gls::DrawTestSpec::Storage> (DE_ARRAY_BEGIN(storages), DE_ARRAY_END(storages), storageWeights.weights); 560 attribSpec.inputType = random.chooseWeighted<gls::DrawTestSpec::InputType> (DE_ARRAY_BEGIN(inputTypes), DE_ARRAY_END(inputTypes), inputTypeWeights.weights); 561 attribSpec.outputType = random.chooseWeighted<gls::DrawTestSpec::OutputType> (DE_ARRAY_BEGIN(outputTypes), DE_ARRAY_END(outputTypes), outputTypeWeights.weights); 562 attribSpec.storage = random.chooseWeighted<gls::DrawTestSpec::Storage> (DE_ARRAY_BEGIN(storages), DE_ARRAY_END(storages), storageWeights.weights); 563 attribSpec.usage = random.chooseWeighted<gls::DrawTestSpec::Usage> (DE_ARRAY_BEGIN(usages), DE_ARRAY_END(usages), usageWeights.weights); [all...] |
/external/opencv/ml/include/ |
ml.h | 562 start_step(0/*CvEM::START_AUTO_STEP*/), probs(0), weights(0), means(0), covs(0) 572 probs(_probs), weights(_weights), means(_means), covs(_covs), term_crit(_term_crit) 579 const CvMat* weights; member in struct:CvEMParams 630 CvMat* weights; member in class:CvEM 1135 CvMat* weights; member in class:CvBoost 1235 double** weights; member in class:CvANN_MLP [all...] |
/external/chromium_org/third_party/skia/include/core/ |
SkPathRef.h | 79 * requisite points & weights. 81 * If 'verb' is kConic_Verb, 'weights' will return a pointer to the 82 * space for the conic weights (indexed normally). 86 SkScalar** weights = NULL) { 87 return fPathRef->growForRepeatedVerb(verb, numVbs, weights); 354 * verb. If 'verb' is kConic_Verb, 'weights' will return a pointer to the 355 * uninitialized conic weights. 357 SkPoint* growForRepeatedVerb(int /*SkPath::Verb*/ verb, int numVbs, SkScalar** weights);
|
/external/skia/include/core/ |
SkPathRef.h | 79 * requisite points & weights. 81 * If 'verb' is kConic_Verb, 'weights' will return a pointer to the 82 * space for the conic weights (indexed normally). 86 SkScalar** weights = NULL) { 87 return fPathRef->growForRepeatedVerb(verb, numVbs, weights); 354 * verb. If 'verb' is kConic_Verb, 'weights' will return a pointer to the 355 * uninitialized conic weights. 357 SkPoint* growForRepeatedVerb(int /*SkPath::Verb*/ verb, int numVbs, SkScalar** weights);
|
/hardware/samsung_slsi/exynos5/include/ |
ExynosCamera.h | 606 bool setFocusAreas(int num, ExynosRect* rects, int *weights); 609 bool setFocusAreas(int num, ExynosRect2* rect2s, int *weights); 639 bool setMeteringAreas(int num, ExynosRect *rects, int *weights); 642 bool setMeteringAreas(int num, ExynosRect2 *rect2s, int *weights);
|
/external/deqp/modules/glshared/ |
glsRasterizationTestUtil.cpp | 355 // calculate weights: vec3(ka / p0.w, kb / p1.w, kc / p2.w) / (ka / p0.w + kb / p1.w + kc / p2.w) 446 // calc weights: vec2((1-t) / p0.w, t / p1.w) / ((1-t) / p0.w + t / p1.w) 495 // allow interpolation weights anywhere in the central subpixels 507 const LineInterpolationRange weights[4] = 515 const tcu::Vec2 minWeights = tcu::min(tcu::min(weights[0].min, weights[1].min), tcu::min(weights[2].min, weights[3].min)); 516 const tcu::Vec2 maxWeights = tcu::max(tcu::max(weights[0].max, weights[1].max), tcu::max(weights[2].max, weights[3].max)) [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/vl/ |
vl_mpeg12_decoder.c | 242 MacroBlockTypeToPipeWeights(const struct pipe_mpeg12_macroblock *mb, unsigned weights[2]) 248 weights[0] = PIPE_VIDEO_MV_WEIGHT_MAX; 249 weights[1] = PIPE_VIDEO_MV_WEIGHT_MIN; 253 weights[0] = PIPE_VIDEO_MV_WEIGHT_HALF; 254 weights[1] = PIPE_VIDEO_MV_WEIGHT_HALF; 258 weights[0] = PIPE_VIDEO_MV_WEIGHT_MIN; 259 weights[1] = PIPE_VIDEO_MV_WEIGHT_MAX; 264 weights[0] = PIPE_VIDEO_MV_WEIGHT_MIN; 265 weights[1] = PIPE_VIDEO_MV_WEIGHT_MIN; 269 weights[0] = PIPE_VIDEO_MV_WEIGHT_MAX [all...] |
/external/mesa3d/src/gallium/auxiliary/vl/ |
vl_mpeg12_decoder.c | 242 MacroBlockTypeToPipeWeights(const struct pipe_mpeg12_macroblock *mb, unsigned weights[2]) 248 weights[0] = PIPE_VIDEO_MV_WEIGHT_MAX; 249 weights[1] = PIPE_VIDEO_MV_WEIGHT_MIN; 253 weights[0] = PIPE_VIDEO_MV_WEIGHT_HALF; 254 weights[1] = PIPE_VIDEO_MV_WEIGHT_HALF; 258 weights[0] = PIPE_VIDEO_MV_WEIGHT_MIN; 259 weights[1] = PIPE_VIDEO_MV_WEIGHT_MAX; 264 weights[0] = PIPE_VIDEO_MV_WEIGHT_MIN; 265 weights[1] = PIPE_VIDEO_MV_WEIGHT_MIN; 269 weights[0] = PIPE_VIDEO_MV_WEIGHT_MAX [all...] |