public class Statistics
extends java.lang.Object
Constructor and Description |
---|
Statistics() |
Modifier and Type | Method and Description |
---|---|
static double |
getMean(java.util.List<java.lang.Double> values)
Provides the mean for the given values
|
static double |
getStandardDeviation(java.util.List<java.lang.Double> values)
Provides the standard deviation for the given values
|
static double |
getStandardDeviation(java.util.List<java.lang.Double> values,
double mean)
Provides the standard deviation for the given values
|
static double |
getTValueNinetyFive(int degreeOfFreedom)
Provides a value for the confidence interval
|
public static double getTValueNinetyFive(int degreeOfFreedom)
degreeOfFreedom
- the int
degree of freedom to use for the confidence intervaldouble
value for the confidence intervalpublic static double getMean(java.util.List<java.lang.Double> values)
values
- the list of double valuesdouble
mean; returns Double.NaN if values is emptypublic static double getStandardDeviation(java.util.List<java.lang.Double> values)
values
- the list of double valuesdouble
standard deviation; returns Double.NaN if values is empty and 0.0 is values has a
size of 1public static double getStandardDeviation(java.util.List<java.lang.Double> values, double mean)
values
- the list of double valuesmean
- the double
mean of the valuesdouble
standard deviation; returns Double.NaN if values is empty and 0.0 is values has a
size of 1