/** * <p>Returns the {@link SemiVariance} of the designated values against the cutoff in the * given direction, using the current value of the biasCorrection instance property.</p> * * <p>Returns <code>NaN</code> if the array is empty and throws * <code>MathIllegalArgumentException</code> if the array is null.</p> * * @param values the input array * @param cutoff the reference point * @param direction the {@link Direction} of the semivariance * @return the SemiVariance * @throws MathIllegalArgumentException if values is null */ public double evaluate(final double[] values, final double cutoff, final Direction direction) throws MathIllegalArgumentException { return evaluate(values, cutoff, direction, biasCorrected, 0, values.length); }
/** * <p>Returns the {@link SemiVariance} of the designated values against the cutoff, using * instance properties variancDirection and biasCorrection.</p> * * <p>Returns <code>NaN</code> if the array is empty and throws * <code>MathIllegalArgumentException</code> if the array is null.</p> * * @param values the input array * @param cutoff the reference point * @return the SemiVariance * @throws MathIllegalArgumentException if values is null */ public double evaluate(final double[] values, final double cutoff) throws MathIllegalArgumentException { return evaluate(values, cutoff, varianceDirection, biasCorrected, 0, values.length); }
/** * This method calculates {@link SemiVariance} for the entire array against the mean, using * the current value of the biasCorrection instance property. * * @param values the input array * @param direction the {@link Direction} of the semivariance * @return the SemiVariance * @throws MathIllegalArgumentException if values is null * */ public double evaluate(final double[] values, Direction direction) throws MathIllegalArgumentException { double m = (new Mean()).evaluate(values); return evaluate (values, m, direction, biasCorrected, 0, values.length); }
/** * <p>Returns the {@link SemiVariance} of the designated values against the mean, using * instance properties varianceDirection and biasCorrection.</p> * * <p>Returns <code>NaN</code> if the array is empty and throws * <code>IllegalArgumentException</code> if the array is null.</p> * * @param values the input array * @param start index of the first array element to include * @param length the number of elements to include * @return the SemiVariance * @throws MathIllegalArgumentException if the parameters are not valid * */ @Override public double evaluate(final double[] values, final int start, final int length) throws MathIllegalArgumentException { double m = (new Mean()).evaluate(values, start, length); return evaluate(values, m, varianceDirection, biasCorrected, 0, values.length); }
/** * <p>Returns the {@link SemiVariance} of the designated values against the cutoff, using * instance properties variancDirection and biasCorrection.</p> * * <p>Returns <code>NaN</code> if the array is empty and throws * <code>MathIllegalArgumentException</code> if the array is null.</p> * * @param values the input array * @param cutoff the reference point * @return the SemiVariance * @throws MathIllegalArgumentException if values is null */ public double evaluate(final double[] values, final double cutoff) throws MathIllegalArgumentException { return evaluate(values, cutoff, varianceDirection, biasCorrected, 0, values.length); }
/** * <p>Returns the {@link SemiVariance} of the designated values against the cutoff, using * instance properties variancDirection and biasCorrection.</p> * * <p>Returns <code>NaN</code> if the array is empty and throws * <code>MathIllegalArgumentException</code> if the array is null.</p> * * @param values the input array * @param cutoff the reference point * @return the SemiVariance * @throws MathIllegalArgumentException if values is null */ public double evaluate(final double[] values, final double cutoff) throws MathIllegalArgumentException { return evaluate(values, cutoff, varianceDirection, biasCorrected, 0, values.length); }
/** * <p>Returns the {@link SemiVariance} of the designated values against the cutoff in the * given direction, using the current value of the biasCorrection instance property.</p> * * <p>Returns <code>NaN</code> if the array is empty and throws * <code>MathIllegalArgumentException</code> if the array is null.</p> * * @param values the input array * @param cutoff the reference point * @param direction the {@link Direction} of the semivariance * @return the SemiVariance * @throws MathIllegalArgumentException if values is null */ public double evaluate(final double[] values, final double cutoff, final Direction direction) throws MathIllegalArgumentException { return evaluate(values, cutoff, direction, biasCorrected, 0, values.length); }
/** * <p>Returns the {@link SemiVariance} of the designated values against the cutoff in the * given direction, using the current value of the biasCorrection instance property.</p> * * <p>Returns <code>NaN</code> if the array is empty and throws * <code>MathIllegalArgumentException</code> if the array is null.</p> * * @param values the input array * @param cutoff the reference point * @param direction the {@link Direction} of the semivariance * @return the SemiVariance * @throws MathIllegalArgumentException if values is null */ public double evaluate(final double[] values, final double cutoff, final Direction direction) throws MathIllegalArgumentException { return evaluate(values, cutoff, direction, biasCorrected, 0, values.length); }
/** * This method calculates {@link SemiVariance} for the entire array against the mean, using * the current value of the biasCorrection instance property. * * @param values the input array * @param direction the {@link Direction} of the semivariance * @return the SemiVariance * @throws MathIllegalArgumentException if values is null * */ public double evaluate(final double[] values, Direction direction) throws MathIllegalArgumentException { double m = (new Mean()).evaluate(values); return evaluate (values, m, direction, biasCorrected, 0, values.length); }
/** * This method calculates {@link SemiVariance} for the entire array against the mean, using * the current value of the biasCorrection instance property. * * @param values the input array * @param direction the {@link Direction} of the semivariance * @return the SemiVariance * @throws MathIllegalArgumentException if values is null * */ public double evaluate(final double[] values, Direction direction) throws MathIllegalArgumentException { double m = (new Mean()).evaluate(values); return evaluate (values, m, direction, biasCorrected, 0, values.length); }
/** * <p>Returns the {@link SemiVariance} of the designated values against the mean, using * instance properties varianceDirection and biasCorrection.</p> * * <p>Returns <code>NaN</code> if the array is empty and throws * <code>IllegalArgumentException</code> if the array is null.</p> * * @param values the input array * @param start index of the first array element to include * @param length the number of elements to include * @return the SemiVariance * @throws MathIllegalArgumentException if the parameters are not valid * */ @Override public double evaluate(final double[] values, final int start, final int length) throws MathIllegalArgumentException { double m = (new Mean()).evaluate(values, start, length); return evaluate(values, m, varianceDirection, biasCorrected, 0, values.length); }
/** * <p>Returns the {@link SemiVariance} of the designated values against the mean, using * instance properties varianceDirection and biasCorrection.</p> * * <p>Returns <code>NaN</code> if the array is empty and throws * <code>IllegalArgumentException</code> if the array is null.</p> * * @param values the input array * @param start index of the first array element to include * @param length the number of elements to include * @return the SemiVariance * @throws MathIllegalArgumentException if the parameters are not valid * */ @Override public double evaluate(final double[] values, final int start, final int length) throws MathIllegalArgumentException { double m = (new Mean()).evaluate(values, start, length); return evaluate(values, m, varianceDirection, biasCorrected, 0, values.length); }