Documentation of 'de.erichseifert.gral.data.statistics.Statistics' Java class
Statistics
de.erichseifert.gral.data.statistics

Class Statistics



  • public class Statistics
    extends java.lang.Object
    A class that computes and stores various statistical information for an Iterable of values.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String KURTOSIS
      Key for specifying the kurtosis.
      static java.lang.String MAX
      Key for specifying the maximum, i.e.
      static java.lang.String MEAN
      Key for specifying the arithmetic mean of all values.
      static java.lang.String MEDIAN
      Key for specifying the median (or 50% quantile).
      static java.lang.String MIN
      Key for specifying the minimum, i.e.
      static java.lang.String N
      Key for specifying the total number of elements.
      static java.lang.String POPULATION_VARIANCE
      Key for specifying the population variance.
      static java.lang.String QUARTILE_1
      Key for specifying the 1st quartile (or 25th quantile).
      static java.lang.String QUARTILE_2
      Key for specifying the 2nd quartile (or 50th quantile).
      static java.lang.String QUARTILE_3
      Key for specifying the 3rd quartile (or 75th quantile).
      static java.lang.String SKEWNESS
      Key for specifying the skewness.
      static java.lang.String SUM
      Key for specifying the sum of all values.
      static java.lang.String SUM_OF_DIFF_CUBICS
      Key for specifying the sum of squared differences.
      static java.lang.String SUM_OF_DIFF_QUADS
      Key for specifying the sum of squared differences.
      static java.lang.String SUM_OF_DIFF_SQUARES
      Key for specifying the sum of squared differences.
      static java.lang.String SUM2
      Key for specifying the sum of all value squares.
      static java.lang.String SUM3
      Key for specifying the sum of all value cubics.
      static java.lang.String SUM4
      Key for specifying the sum of all value quads.
      static java.lang.String VARIANCE
      Key for specifying the variance of a sample.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Statistics(java.lang.Iterable<? extends java.lang.Comparable<?>> data)
      Initializes a new object with the specified data values.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      double get(java.lang.String key)
      Returns the specified statistics value.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • N

        public static final java.lang.String N
        Key for specifying the total number of elements. This is the zeroth central moment: E((x - ยต)^0)
        See Also:
        Constant Field Values
      • SUM

        public static final java.lang.String SUM
        Key for specifying the sum of all values.
        See Also:
        Constant Field Values
      • SUM2

        public static final java.lang.String SUM2
        Key for specifying the sum of all value squares.
        See Also:
        Constant Field Values
      • SUM3

        public static final java.lang.String SUM3
        Key for specifying the sum of all value cubics.
        See Also:
        Constant Field Values
      • SUM4

        public static final java.lang.String SUM4
        Key for specifying the sum of all value quads.
        See Also:
        Constant Field Values
      • MIN

        public static final java.lang.String MIN
        Key for specifying the minimum, i.e. the smallest value.
        See Also:
        Constant Field Values
      • MAX

        public static final java.lang.String MAX
        Key for specifying the maximum, i.e. the largest value.
        See Also:
        Constant Field Values
      • MEAN

        public static final java.lang.String MEAN
        Key for specifying the arithmetic mean of all values.
        See Also:
        Constant Field Values
      • SUM_OF_DIFF_SQUARES

        public static final java.lang.String SUM_OF_DIFF_SQUARES
        Key for specifying the sum of squared differences. This is identical to the second central moment: E((x - mean)^2)
        See Also:
        Constant Field Values
      • SUM_OF_DIFF_CUBICS

        public static final java.lang.String SUM_OF_DIFF_CUBICS
        Key for specifying the sum of squared differences. This is identical to the third central moment: E((x - mean)^3)
        See Also:
        Constant Field Values
      • SUM_OF_DIFF_QUADS

        public static final java.lang.String SUM_OF_DIFF_QUADS
        Key for specifying the sum of squared differences. This is identical to the fourth central moment: E((x - mean)^4)
        See Also:
        Constant Field Values
      • VARIANCE

        public static final java.lang.String VARIANCE
        Key for specifying the variance of a sample. Formula: 1/(N - 1) * sumOfSquares
        See Also:
        Constant Field Values
      • POPULATION_VARIANCE

        public static final java.lang.String POPULATION_VARIANCE
        Key for specifying the population variance. Formula: 1/N * sumOfSquares
        See Also:
        Constant Field Values
      • SKEWNESS

        public static final java.lang.String SKEWNESS
        Key for specifying the skewness.
        See Also:
        Constant Field Values
      • KURTOSIS

        public static final java.lang.String KURTOSIS
        Key for specifying the kurtosis.
        See Also:
        Constant Field Values
      • MEDIAN

        public static final java.lang.String MEDIAN
        Key for specifying the median (or 50% quantile).
        See Also:
        Constant Field Values
      • QUARTILE_1

        public static final java.lang.String QUARTILE_1
        Key for specifying the 1st quartile (or 25th quantile).
        See Also:
        Constant Field Values
      • QUARTILE_2

        public static final java.lang.String QUARTILE_2
        Key for specifying the 2nd quartile (or 50th quantile).
        See Also:
        Constant Field Values
      • QUARTILE_3

        public static final java.lang.String QUARTILE_3
        Key for specifying the 3rd quartile (or 75th quantile).
        See Also:
        Constant Field Values
    • Constructor Detail

      • Statistics

        public Statistics(java.lang.Iterable<? extends java.lang.Comparable<?>> data)
        Initializes a new object with the specified data values.
        Parameters:
        data - Data to be analyzed.
    • Method Detail

      • get

        public double get(java.lang.String key)
        Returns the specified statistics value.
        Parameters:
        key - Requested information.
        Returns:
        The value for the specified key as value, or NaN if the specified statistical value does not exist

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.