public class SummaryStats extends Object implements Size64
add(double) or addAll(DoubleList) to
add elements.
This class is thread-safe. All methods can be invoked concurrently.
| Constructor and Description |
|---|
SummaryStats() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(double x)
Adds a value to the stream.
|
void |
addAll(double[] a)
Adds values to the stream.
|
void |
addAll(DoubleList l)
Adds values to the stream.
|
double |
max()
Returns the maximum of the values added so far.
|
double |
mean()
Returns the mean of the values added so far.
|
double |
min()
Returns the minimum of the values added so far.
|
double |
relativeStandardDeviation()
Returns the relative standard deviation of the values added so far.
|
double |
sampleRelativeStandardDeviation()
Returns the sample relative standard deviation of the values added so far.
|
double |
sampleStandardDeviation()
Returns the sample standard deviation of the values added so far.
|
double |
sampleVariance()
Returns the sample variance of the values added so far.
|
int |
size()
Deprecated.
|
long |
size64()
Returns the number of values added so far.
|
double |
standardDeviation()
Returns the standard deviation of the values added so far.
|
double |
sum()
Returns the sum of the values added so far.
|
String |
toString() |
double |
variance()
Returns the variance of the values added so far.
|
public void add(double x)
x - the new value.public void addAll(double[] a)
a - an array of new values.public void addAll(DoubleList l)
l - a list of new values.public double mean()
public double sum()
public double sampleVariance()
variance()public double variance()
sampleVariance()public double sampleStandardDeviation()
standardDeviation()public double standardDeviation()
sampleStandardDeviation()public double sampleRelativeStandardDeviation()
relativeStandardDeviation()public double relativeStandardDeviation()
sampleRelativeStandardDeviation()public double min()
public double max()
public long size64()
@Deprecated public int size()