public class Quantile<N extends Number> extends MappedAccumulator<N>
_samples| Constructor and Description |
|---|
Quantile(double quantile)
Create a new quantile accumulator with the given value.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accumulate(N value)
Accumulate the given value.
|
Quantile<N> |
clone() |
boolean |
equals(Object obj) |
double |
getQuantile()
Deprecated.
Use
getValue() instead. |
double |
getValue()
Return the computed quantile value.
|
int |
hashCode() |
void |
reset()
Reset this object to its initial state.
|
String |
toString() |
getSamples, mappublic Quantile(double quantile)
quantile - the wished quantile value.IllegalArgumentException - if the quantile is not in the
range [0, 1].public void reset()
@Deprecated public double getQuantile()
getValue() instead.public double getValue()
public void accumulate(N value)
Accumulatoraccumulate in interface Accumulator<N extends Number>accumulate in class MappedAccumulator<N extends Number>value - the value to accumulate.public int hashCode()
hashCode in class MappedAccumulator<N extends Number>public boolean equals(Object obj)
equals in class MappedAccumulator<N extends Number>© 2007-2013 Franz Wilhelmstötter (2013-12-18 20:17)