|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math.stat.univariate.AbstractUnivariateStatistic
Abstract Implementation for UnivariateStatistics. Provides the ability to extend polymophically so that indiviual statistics do not need to implement these methods.
Constructor Summary | |
AbstractUnivariateStatistic()
|
Method Summary | |
double |
evaluate(double[] values)
This implementation provides a simple wrapper around the double[] and passes the request onto the evaluate(DoubleArray da) method. |
abstract double |
evaluate(double[] values,
int begin,
int length)
Subclasses of AbstractUnivariateStatistc need to implement this method. |
protected boolean |
test(double[] values,
int begin,
int length)
this protected test method used by all methods to verify the content of the array and indicies are correct. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractUnivariateStatistic()
Method Detail |
public double evaluate(double[] values)
evaluate
in interface UnivariateStatistic
values
- Is a double[] containing the values
UnivariateStatistic.evaluate(double[])
public abstract double evaluate(double[] values, int begin, int length)
evaluate
in interface UnivariateStatistic
values
- Is a double[] containing the valuesbegin
- processing at this point in the arraylength
- processing at this point in the array
UnivariateStatistic.evaluate(double[], int, int)
protected boolean test(double[] values, int begin, int length)
values
- Is a double[] containing the valuesbegin
- processing at this point in the arraylength
- processing at this point in the array
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |