Serializable
, Comparable<Statistics>
, org.apache.commons.math3.stat.descriptive.StatisticalSummary
, Statistics
public class ListStatistics extends AbstractStatistics
Constructor | Description |
---|---|
ListStatistics() |
|
ListStatistics(double[] samples) |
|
ListStatistics(long[] samples) |
Modifier and Type | Method | Description |
---|---|---|
void |
addValue(double d) |
|
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.
|
Iterator<Map.Entry<Double,Long>> |
getRawData() |
Returns the raw data for this statistics.
|
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
public ListStatistics()
public ListStatistics(double[] samples)
public ListStatistics(long[] samples)
public void addValue(double d)
public double getMax()
Statistics
public double getMin()
Statistics
public long getN()
Statistics
public double getSum()
Statistics
public double getPercentile(double rank)
Statistics
rank
- the rank, [0..100]public int[] getHistogram(double[] levels)
Statistics
levels
- levelspublic Iterator<Map.Entry<Double,Long>> getRawData()
Statistics
public double getVariance()
Statistics
Copyright © 2012-2016 Oracle. All Rights Reserved.