public class BasicDescriptiveStatistics extends java.lang.Object implements DescriptiveStatistics
PLUS_MINUS
Constructor and Description |
---|
BasicDescriptiveStatistics() |
Modifier and Type | Method and Description |
---|---|
void |
addValue(double d) |
double |
arithmeticMean() |
java.lang.String |
asSummary() |
double |
coefficientOfVariation()
Computes the coefficient of variation.
|
double[] |
getDataAsDoubleArray() |
double |
getMax() |
double |
getMin() |
int |
getN() |
double |
getSum() |
java.lang.String |
getSummaryAsString() |
double |
getValue(int index) |
double |
median() |
double |
midrange() |
double |
pearsonianSkewness()
Determines relationship between the mean and the median.
|
static int[] |
performBinning(double[] values,
double min,
double max,
int number_of_bins) |
double |
sampleStandardDeviation() |
double |
sampleStandardUnit(double value) |
static double |
sampleStandardUnit(double value,
double mean,
double sd)
Computes the sample standard unit (z-score).
|
double |
sampleVariance() |
double |
standardErrorOfMean() |
double |
sumDeviations() |
java.lang.String |
toString() |
public void addValue(double d)
addValue
in interface DescriptiveStatistics
public double arithmeticMean()
arithmeticMean
in interface DescriptiveStatistics
public java.lang.String asSummary()
asSummary
in interface DescriptiveStatistics
public double coefficientOfVariation()
DescriptiveStatistics
coefficientOfVariation
in interface DescriptiveStatistics
public double[] getDataAsDoubleArray()
getDataAsDoubleArray
in interface DescriptiveStatistics
public double getMax()
getMax
in interface DescriptiveStatistics
public double getMin()
getMin
in interface DescriptiveStatistics
public int getN()
getN
in interface DescriptiveStatistics
public double getSum()
getSum
in interface DescriptiveStatistics
public java.lang.String getSummaryAsString()
getSummaryAsString
in interface DescriptiveStatistics
public double getValue(int index)
getValue
in interface DescriptiveStatistics
public double median()
median
in interface DescriptiveStatistics
public double midrange()
midrange
in interface DescriptiveStatistics
public double pearsonianSkewness()
DescriptiveStatistics
pearsonianSkewness
in interface DescriptiveStatistics
public double sampleStandardDeviation()
sampleStandardDeviation
in interface DescriptiveStatistics
public double sampleStandardUnit(double value)
sampleStandardUnit
in interface DescriptiveStatistics
public double sampleVariance()
sampleVariance
in interface DescriptiveStatistics
public double standardErrorOfMean()
standardErrorOfMean
in interface DescriptiveStatistics
public double sumDeviations()
sumDeviations
in interface DescriptiveStatistics
public java.lang.String toString()
toString
in interface DescriptiveStatistics
toString
in class java.lang.Object
public static int[] performBinning(double[] values, double min, double max, int number_of_bins)
public static double sampleStandardUnit(double value, double mean, double sd)
value
- a double in the sample for whichmean
- the mean of the sample.sd
- The standard deviation of the sample.