public class Sample
extends java.lang.Object
Constructor and Description |
---|
Sample() |
Modifier and Type | Method and Description |
---|---|
void |
add(double X)
Add the given number to the summation and squares summation for mean and squares summation.
|
double |
getCoefficientOfVariation()
Returns the Variation coefficient.
|
double |
getMax()
Returns the maximum value of all samples.
|
double |
getMean()
Returns the mean
|
ConfidenceInterval |
getMean(double confidence)
Returns a Confidence Interval for the mean value with the given confidence.
|
ConfidenceInterval |
getMean(double confidence,
double sigma)
Returns a Confidence Interval for the mean value with the given confidence and sigma.
|
double |
getMeanSquares()
Returns the mean of the samples squares.
|
double |
getMin()
Returns the minimum value of all samples.
|
double |
getRange()
Returns the range (max-min).
|
int |
getSampleSize()
Returns the number of samples.
|
double |
getStandardDeviation()
Returns the Standard deviation.
|
ConfidenceInterval |
getStandardDeviation(double confidence)
Returns a Confidence Interval for the standard deviation value with the given confidence.
|
double |
getSum()
Returns the summation of samples values.
|
double |
getSumSquares()
Returns the summation of the samples squares.
|
double |
getVariance()
Returns the variance.
|
ConfidenceInterval |
getVariance(double confidence)
Returns a Confidence Interval for the variance value with the given confidence.
|
void |
reset()
Resets the statisticals variables.
|
public void add(double X)
X
- number given.public void reset()
public int getSampleSize()
public double getSum()
public double getMean()
public double getSumSquares()
public double getMeanSquares()
public double getVariance()
public double getStandardDeviation()
public double getMin()
public double getMax()
public double getRange()
public double getCoefficientOfVariation()
public ConfidenceInterval getMean(double confidence, double sigma)
confidence
- confidence given.sigma
- sigma given.public ConfidenceInterval getMean(double confidence)
confidence
- confidence given.public ConfidenceInterval getVariance(double confidence)
confidence
- confidence given.public ConfidenceInterval getStandardDeviation(double confidence)
confidence
- confidence given.