Class HistogramStatistics
Object
HistogramStatistics
Further statistics that can be derived from a histogram in addition to those existing as direct
methods of
Histogram
.-
Method Summary
Modifier and TypeMethodDescriptionstatic double
coefficientOfVariation
(Histogram histogram) Calculates the coefficient-of-variation of a distribution of values, represented by their histogram.static double
Calculates the kurtosis of a distribution of values, represented by their histogram.static double
Calculates the skewness of a distribution of values, represented by their histogram.
-
Method Details
-
coefficientOfVariation
Calculates the coefficient-of-variation of a distribution of values, represented by their histogram.This is the ratio of the standard-deviation to the mean.
- Parameters:
histogram
- the histogram to calculate from.- Returns:
- the coefficient-of-variation.
- Throws:
OperationFailedException
- if the statistic is undefined, for example with zero mean.
-
skewness
Calculates the skewness of a distribution of values, represented by their histogram.This is the third standardized moment.
- Parameters:
histogram
- the histogram to calculate from.- Returns:
- the skewness.
- Throws:
OperationFailedException
- if the statistic is undefined, for example with zero variance.
-
kurtosis
Calculates the kurtosis of a distribution of values, represented by their histogram.This is fourth standardized moment.
- Parameters:
histogram
- the histogram to calculate from.- Returns:
- the kurtosis.
- Throws:
OperationFailedException
- if the statistic is undefined, for example with zero variance.
-