Class HistogramStatistics

Object
HistogramStatistics

public class HistogramStatistics extends Object
Further statistics that can be derived from a histogram in addition to those existing as direct methods of Histogram.
  • Method Details

    • coefficientOfVariation

      public static double coefficientOfVariation(Histogram histogram) throws OperationFailedException
      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.

      See coefficient-of-variation on Wikipedia.

      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

      public static double skewness(Histogram histogram) throws OperationFailedException
      Calculates the skewness of a distribution of values, represented by their histogram.

      This is the third standardized moment.

      See skewness on Wikipedia.

      Parameters:
      histogram - the histogram to calculate from.
      Returns:
      the skewness.
      Throws:
      OperationFailedException - if the statistic is undefined, for example with zero variance.
    • kurtosis

      public static double kurtosis(Histogram histogram) throws OperationFailedException
      Calculates the kurtosis of a distribution of values, represented by their histogram.

      This is fourth standardized moment.

      See kurtosis on Wikipedia.

      Parameters:
      histogram - the histogram to calculate from.
      Returns:
      the kurtosis.
      Throws:
      OperationFailedException - if the statistic is undefined, for example with zero variance.