Searched defs:weights (Results 1 - 4 of 4) sorted by relevance

/frameworks/base/libs/hwui/utils/
H A DBlur.cpp61 void Blur::generateGaussianWeights(float* weights, float radius) { argument
64 // Compute gaussian weights for the blur
83 weights[r + intRadius] = coeff1 * pow(e, floatR * floatR * coeff2);
84 normalizeFactor += weights[r + intRadius];
87 //Now we need to normalize the weights because all our coefficients need to add up to one
90 weights[r + intRadius] *= normalizeFactor;
94 void Blur::horizontal(float* weights, int32_t radius, argument
106 const float* gPtr = weights;
138 void Blur::vertical(float* weights, int32_t radius, argument
148 const float* gPtr = weights;
[all...]
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/java/android/bordeaux/learning/
H A DStochasticLinearRanker.java42 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())
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DParallaxEffect.java95 * @param weights A list of Float objects that represents weight associated with each variable
99 public final void setWeights(float... weights) { argument
100 for (float weight : weights) {
108 for (float weight : weights) {
119 * @param weights A list of Float objects that represents weight associated with each variable
124 public final ParallaxEffect weights(float... weights) { argument
125 setWeights(weights);
257 // use weights user defined
/frameworks/rs/driver/runtime/
H A Drs_sample.c268 getBilinearSample1D(const Allocation_t *alloc, float2 weights, argument
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
440 float2 weights; local
[all...]

Completed in 662 milliseconds