Class SimpleStats
- java.lang.Object
-
- org.hortonmachine.gears.utils.math.SimpleStats
-
public class SimpleStats extends Object
A simple statistics class that wraps DescriptiveStatistics.- Author:
- Andrea Antonello (www.hydrologis.com)
-
-
Constructor Summary
Constructors Constructor Description SimpleStats()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddValue(double v)longgetCount()doublegetMax()doublegetMean()doublegetMin()doublegetPercentile(double p)doublegetStandardDeviation()doublegetSum()doublegetVariance()
-
-
-
Method Detail
-
addValue
public void addValue(double v)
-
getMean
public double getMean()
-
getSum
public double getSum()
-
getMin
public double getMin()
-
getMax
public double getMax()
-
getStandardDeviation
public double getStandardDeviation()
-
getVariance
public double getVariance()
-
getPercentile
public double getPercentile(double p)
- Parameters:
p- the percentile between 0 and 100.- Returns:
- the precentile.
-
getCount
public long getCount()
-
-