Lines Matching defs:weight

182      * Returns the weight of importance that this target places on a color's saturation within
185 * <p>The larger the weight, relative to the other weights, the more important that a color
195 * Returns the weight of importance that this target places on a color's lightness within
198 * <p>The larger the weight, relative to the other weights, the more important that a color
208 * Returns the weight of importance that this target places on a color's population within
211 * <p>The larger the weight, relative to the other weights, the more important that a
242 float weight = mWeights[i];
243 if (weight > 0) {
244 sum += weight;
351 * Set the weight of importance that this target will place on saturation values.
353 * <p>The larger the weight, relative to the other weights, the more important that a color
356 * <p>A weight of 0 means that it has no weight, and thus has no
361 public Builder setSaturationWeight(@FloatRange(from = 0) float weight) {
362 mTarget.mWeights[INDEX_WEIGHT_SAT] = weight;
367 * Set the weight of importance that this target will place on lightness values.
369 * <p>The larger the weight, relative to the other weights, the more important that a color
372 * <p>A weight of 0 means that it has no weight, and thus has no
377 public Builder setLightnessWeight(@FloatRange(from = 0) float weight) {
378 mTarget.mWeights[INDEX_WEIGHT_LUMA] = weight;
383 * Set the weight of importance that this target will place on a color's population within
386 * <p>The larger the weight, relative to the other weights, the more important that a
389 * <p>A weight of 0 means that it has no weight, and thus has no
392 public Builder setPopulationWeight(@FloatRange(from = 0) float weight) {
393 mTarget.mWeights[INDEX_WEIGHT_POP] = weight;