Home | History | Annotate | Download | only in descriptive

Lines Matching refs:weights

165      * and the weights are all non-negative, non-NaN, finite, and not all zero.
169 * positive length and the weights array contains legitimate values.</li>
172 * <li>the weights array is null</li>
173 * <li>the weights array does not have the same length as the values array</li>
174 * <li>the weights array contains one or more infinite values</li>
175 * <li>the weights array contains one or more NaN values</li>
176 * <li>the weights array contains negative values</li>
184 * @param weights the weights array
193 final double[] weights,
197 if (weights == null) {
201 if (weights.length != values.length) {
202 throw new DimensionMismatchException(weights.length, values.length);
207 if (Double.isNaN(weights[i])) {
211 if (Double.isInfinite(weights[i])) {
213 LocalizedFormats.INFINITE_ARRAY_ELEMENT, weights[i], i);
215 if (weights[i] < 0) {
217 LocalizedFormats.NEGATIVE_ELEMENT_AT_INDEX, i, weights[i]);
219 if (!containsPositiveWeight && weights[i] > 0.0) {