public class Statistics
extends java.lang.Object
Constructor and Description |
---|
Statistics() |
Modifier and Type | Method and Description |
---|---|
void |
add(double x)
Adds a new sample to the statistics
|
void |
clear()
Resets the statistics to an empty state
|
int |
getCount()
Returns the current number of samples
|
double |
getMean()
Returns the mean of the current set of samples
|
double |
getStandardDeviation()
Returns the sample standard deviation of the current set of samples
|
double |
getVariance()
Returns the sample variance of the current set of samples
|
void |
remove(double x)
Removes a sample from the statistics
|
public int getCount()
public double getMean()
public double getVariance()
public double getStandardDeviation()
public void clear()
public void add(double x)
x
- the sample to addpublic void remove(double x)
x
- the sample to remove