Class Stats


  • public class Stats
    extends Object
    An object that calculates in one pass a variety of common statistical values that describe a column
    • Method Detail

      • create

        public static Stats create​(NumericColumn<?> values)
        Constructs a Stats object from the given column
      • range

        public double range()
        Returns the range of values in the data
      • standardDeviation

        public double standardDeviation()
        Returns the standard deviation of values in the data
      • n

        public long n()
        Returns the number of values in the data
      • mean

        public double mean()
        Returns the mean of values in the data
      • min

        public double min()
        Returns the smallest value
      • max

        public double max()
        Returns the largest value
      • sum

        public double sum()
        Returns the sum of the values
      • variance

        public double variance()
        Returns the sample variance of the values
      • sumOfSquares

        public double sumOfSquares()
        Returns the sum of squares of the values
      • populationVariance

        public double populationVariance()
        Returns the population variance of the values
      • sumOfLogs

        public double sumOfLogs()
        Returns the sum of the logs of the values
      • geometricMean

        public double geometricMean()
        Returns the geometric mean of the values
      • quadraticMean

        public double quadraticMean()
        Returns the quadratic mean of the values
      • secondMoment

        public double secondMoment()
        Returns the second moment of the values
      • asTable

        public Table asTable()
        Returns the most common calculated statistics in tabular form
      • asTableComplete

        public Table asTableComplete()
        Returns all the calculated statistics in tabular form