Class UnivariateStatistics
- java.lang.Object
-
- com.macrofocus.molap.aggregates.cube.UnivariateStatistics
-
- All Implemented Interfaces:
java.lang.Comparable<UnivariateStatistics>
public class UnivariateStatistics extends java.lang.Object implements java.lang.Comparable<UnivariateStatistics>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UnivariateStatistics.EstimationType
An enum for various estimation strategies of a percentile referred in wikipedia on quantile with the names of enum matching those of types mentioned in wikipedia.
-
Constructor Summary
Constructors Constructor Description UnivariateStatistics(Series column)
UnivariateStatistics(java.lang.Iterable<Row> rows, Series<Row,?> column)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(UnivariateStatistics o)
long
getCount()
java.lang.Number
getMaximum()
java.lang.Double
getMean()
java.lang.Number
getMedian()
java.lang.Number
getMinimum()
java.lang.Double
getPercentile(double p)
java.lang.Double
getPercentile(UnivariateStatistics.EstimationType type, double p)
java.lang.Object
getSigma(double sigma)
java.lang.Double
getStdDev()
java.lang.Double
getSum()
java.lang.Double
getUncorrectedSumOfSquares()
java.lang.Double
getVariance()
java.lang.Double
toPercentile(double value)
java.lang.String
toString()
-
-
-
Method Detail
-
getUncorrectedSumOfSquares
public java.lang.Double getUncorrectedSumOfSquares()
-
getMinimum
public java.lang.Number getMinimum()
-
getMaximum
public java.lang.Number getMaximum()
-
getMean
public java.lang.Double getMean()
-
getVariance
public java.lang.Double getVariance()
-
getStdDev
public java.lang.Double getStdDev()
-
getSigma
public java.lang.Object getSigma(double sigma)
-
getMedian
public java.lang.Number getMedian()
-
getCount
public long getCount()
-
getSum
public java.lang.Double getSum()
-
getPercentile
public java.lang.Double getPercentile(UnivariateStatistics.EstimationType type, double p)
-
toPercentile
public java.lang.Double toPercentile(double value)
-
getPercentile
public java.lang.Double getPercentile(double p)
-
compareTo
public int compareTo(UnivariateStatistics o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<UnivariateStatistics>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-