public class UnivariateStatistics
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected double |
_mean
the mean and mean square of the samples
|
protected double |
_meanSquare
the mean and mean square of the samples
|
protected int |
_population
the number of samples
|
Constructor and Description |
---|
UnivariateStatistics()
Constructor with no samples.
|
UnivariateStatistics(int size,
double average,
double averageSquare)
Primary Constructor with a starting set of statistics.
|
UnivariateStatistics(UnivariateStatistics stats)
Copy constructor
|
UnivariateStatistics(UnivariateStatistics stats,
double scale)
Constructor which scales the samples from an existing set of statistics.
|
Modifier and Type | Method and Description |
---|---|
double |
mean()
Get the mean of the samples.
|
double |
meanSquare()
Get the mean square of the samples.
|
int |
population()
Get the population of the samples (i.e.
|
double |
sampleStandardDeviation()
Get the sample standard deviation of the measurements (implies a random subset of
all data).
|
double |
sampleStandardDeviationOfMean()
Get the standard deviation of the mean from the actual value assuming the
supporting data is a random subset of all the data.
|
double |
sampleVariance()
Get the sample variance of the measurements (implies a random subset of all data).
|
double |
sampleVarianceOfMean()
Get the variance of the mean from the actual value assuming the supporting
data is a random subset of all the data.
|
double |
standardDeviation()
Get the standard deviation of the samples.
|
double |
standardDeviationOfMean()
Get the standard deviation of the mean from the actual value.
|
double |
variance()
Get the variance of the samples.
|
double |
varianceOfMean()
Get the variance of the mean from the actual value.
|
protected int _population
protected double _mean
protected double _meanSquare
public UnivariateStatistics()
public UnivariateStatistics(UnivariateStatistics stats)
stats
- the statistics to copypublic UnivariateStatistics(UnivariateStatistics stats, double scale)
stats
- the statistics against which to scalescale
- factor which is used to scale the copied statisticspublic UnivariateStatistics(int size, double average, double averageSquare)
size
- the number of samplesaverage
- the meanaverageSquare
- the mean square of the samplespublic int population()
public double mean()
public double meanSquare()
public double standardDeviation()
public double variance()
public double sampleStandardDeviation()
public double sampleVariance()
public double varianceOfMean()
public double standardDeviationOfMean()
public double sampleVarianceOfMean()
public double sampleStandardDeviationOfMean()