public class MultisetStatistics extends AbstractStatistics
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
private Multiset<java.lang.Double> |
values |
Constructor and Description |
---|
MultisetStatistics() |
Modifier and Type | Method and Description |
---|---|
void |
addValue(double d,
long count) |
private double |
get(long index) |
int[] |
getHistogram(double[] levels)
Returns the histogram for this statistics.
|
double |
getMax()
Returns the maximum for this statistics.
|
double |
getMin()
Returns the minimum for this statistics.
|
long |
getN()
Returns the number of samples in this statistics.
|
double |
getPercentile(double rank)
Returns the percentile at given rank.
|
double |
getSum()
Returns the sum of samples in this statistics.
|
double |
getVariance()
Returns the variance for this statistics.
|
compareTo, compareTo, getConfidenceIntervalAt, getMean, getMeanErrorAt, getStandardDeviation, isDifferent, toString
private static final long serialVersionUID
private final Multiset<java.lang.Double> values
public void addValue(double d, long count)
public double getMax()
Statistics
public double getMin()
Statistics
public long getN()
Statistics
public double getSum()
Statistics
private double get(long index)
public double getPercentile(double rank)
Statistics
rank
- the rank, [0..100]public double getVariance()
Statistics
public int[] getHistogram(double[] levels)
Statistics
levels
- levels