de.erichseifert.gral.data.statistics
Class Statistics
- java.lang.Object
-
- de.erichseifert.gral.data.statistics.Statistics
-
public class Statistics extends java.lang.ObjectA 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.StringKURTOSISKey for specifying the kurtosis.static java.lang.StringMAXKey for specifying the maximum, i.e.static java.lang.StringMEANKey for specifying the arithmetic mean of all values.static java.lang.StringMEDIANKey for specifying the median (or 50% quantile).static java.lang.StringMINKey for specifying the minimum, i.e.static java.lang.StringNKey for specifying the total number of elements.static java.lang.StringPOPULATION_VARIANCEKey for specifying the population variance.static java.lang.StringQUARTILE_1Key for specifying the 1st quartile (or 25th quantile).static java.lang.StringQUARTILE_2Key for specifying the 2nd quartile (or 50th quantile).static java.lang.StringQUARTILE_3Key for specifying the 3rd quartile (or 75th quantile).static java.lang.StringSKEWNESSKey for specifying the skewness.static java.lang.StringSUMKey for specifying the sum of all values.static java.lang.StringSUM_OF_DIFF_CUBICSKey for specifying the sum of squared differences.static java.lang.StringSUM_OF_DIFF_QUADSKey for specifying the sum of squared differences.static java.lang.StringSUM_OF_DIFF_SQUARESKey for specifying the sum of squared differences.static java.lang.StringSUM2Key for specifying the sum of all value squares.static java.lang.StringSUM3Key for specifying the sum of all value cubics.static java.lang.StringSUM4Key for specifying the sum of all value quads.static java.lang.StringVARIANCEKey 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 doubleget(java.lang.String key)Returns the specified statistics value.
-
-
-
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
-
-
DataMelt 3.0 © DataMelt by jWork.ORG