public class BasicDescriptiveStatistics extends java.lang.Object implements DescriptiveStatistics
PLUS_MINUS| Constructor and Description |
|---|
BasicDescriptiveStatistics() |
BasicDescriptiveStatistics(java.lang.String desc) |
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(double d) |
double |
arithmeticMean() |
java.lang.String |
asSummary() |
double |
coefficientOfVariation()
Computes the coefficient of variation.
|
java.util.List<java.lang.Double> |
getData() |
double[] |
getDataAsDoubleArray() |
java.lang.String |
getDescription() |
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() |
void |
setDescription(java.lang.String desc) |
double |
standardErrorOfMean() |
double |
sumDeviations() |
java.lang.String |
toString() |
public BasicDescriptiveStatistics()
public BasicDescriptiveStatistics(java.lang.String desc)
public void addValue(double d)
addValue in interface DescriptiveStatisticspublic double arithmeticMean()
arithmeticMean in interface DescriptiveStatisticspublic java.lang.String asSummary()
asSummary in interface DescriptiveStatisticspublic double coefficientOfVariation()
DescriptiveStatisticscoefficientOfVariation in interface DescriptiveStatisticspublic java.util.List<java.lang.Double> getData()
getData in interface DescriptiveStatisticspublic double[] getDataAsDoubleArray()
getDataAsDoubleArray in interface DescriptiveStatisticspublic java.lang.String getDescription()
getDescription in interface DescriptiveStatisticspublic double getMax()
getMax in interface DescriptiveStatisticspublic double getMin()
getMin in interface DescriptiveStatisticspublic int getN()
getN in interface DescriptiveStatisticspublic double getSum()
getSum in interface DescriptiveStatisticspublic java.lang.String getSummaryAsString()
getSummaryAsString in interface DescriptiveStatisticspublic double getValue(int index)
getValue in interface DescriptiveStatisticspublic double median()
median in interface DescriptiveStatisticspublic double midrange()
midrange in interface DescriptiveStatisticspublic double pearsonianSkewness()
DescriptiveStatisticspearsonianSkewness in interface DescriptiveStatisticspublic double sampleStandardDeviation()
sampleStandardDeviation in interface DescriptiveStatisticspublic double sampleStandardUnit(double value)
sampleStandardUnit in interface DescriptiveStatisticspublic double sampleVariance()
sampleVariance in interface DescriptiveStatisticspublic void setDescription(java.lang.String desc)
setDescription in interface DescriptiveStatisticspublic double standardErrorOfMean()
standardErrorOfMean in interface DescriptiveStatisticspublic double sumDeviations()
sumDeviations in interface DescriptiveStatisticspublic java.lang.String toString()
toString in interface DescriptiveStatisticstoString in class java.lang.Objectpublic 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.