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, map
public 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)
Accumulator
accumulate
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-2014 Franz Wilhelmstötter (2014-03-07 19:35)