| java.lang.Object org.apache.commons.math.stat.descriptive.AbstractUnivariateStatistic
All known Subclasses: org.apache.commons.math.stat.descriptive.rank.Percentile, org.apache.commons.math.stat.descriptive.AbstractStorelessUnivariateStatistic,
AbstractUnivariateStatistic | abstract public class AbstractUnivariateStatistic implements UnivariateStatistic,Serializable(Code) | | Abstract base class for all implementations of the
UnivariateStatistic interface.
Provides a default implementation of evaluate(double[]),
delegating to evaluate(double[], int, int) in the natural way.
Also includes a test method that performs generic parameter
validation for the evaluate methods.
version: $Revision: 348519 $ $Date: 2005-11-23 12:12:18 -0700 (Wed, 23 Nov 2005) $ |
Method Summary | |
public double | evaluate(double[] values) | abstract public double | evaluate(double[] values, int begin, int length) | protected boolean | test(double[] values, int begin, int length) This method is used by evaluate(double[], int, int) methods
to verify that the input parameters designate a subarray of positive length. |
test | protected boolean test(double[] values, int begin, int length)(Code) | | This method is used by evaluate(double[], int, int) methods
to verify that the input parameters designate a subarray of positive length.
- returns
true iff the parameters designate a subarray of
positive length
- throws
IllegalArgumentException if the array is null or
or the indices are invalid
- returns
false if the array is non-null, but
length is 0.
Parameters: values - the input array Parameters: begin - index of the first array element to include Parameters: length - the number of elements to include true if the parameters are valid and designate a subarray of positive length throws: IllegalArgumentException - if the indices are invalid or the array is null |
|
|