|
|||||||||||
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
org.apache.commons.math.stat.univariate.rank.Percentile
Constructor Summary | |
Percentile()
Constructs a Percentile with a default percentile value of 50.0. |
|
Percentile(double p)
Constructs a Percentile with the specific percentile value. |
Method Summary | |
double |
evaluate(double[] values,
double p)
Evaluates the double[] top the specified percentile. |
double |
evaluate(double[] values,
int start,
int length)
Subclasses of AbstractUnivariateStatistc need to implement this method. |
double |
evaluate(double[] values,
int begin,
int length,
double p)
Evaluates the double[] top the specified percentile. |
double |
getPercentile()
The default internal state of this percentile can be set. |
void |
setPercentile(double p)
The default internal state of this percentile can be set. |
Methods inherited from class org.apache.commons.math.stat.univariate.AbstractUnivariateStatistic |
evaluate, test |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Percentile()
public Percentile(double p)
p
- the percentileMethod Detail |
public double evaluate(double[] values, double p)
values
- Is a double[] containing the valuesp
- Is the percentile to evaluate to.
public double evaluate(double[] values, int start, int length)
AbstractUnivariateStatistic
evaluate
in interface UnivariateStatistic
evaluate
in class AbstractUnivariateStatistic
UnivariateStatistic.evaluate(double[], int, int)
public double evaluate(double[] values, int begin, int length, double p)
values
- Is a double[] containing the valuesbegin
- processing at this point in the arraylength
- processing at this point in the arrayp
- Is the percentile to evaluate to.*
public double getPercentile()
public void setPercentile(double p)
p
- a value between 0 <= p <= 100
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |