public class Statistic extends Object
| Constructor and Description |
|---|
Statistic() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
double |
getAverage()
Get the average value
|
int |
getCount()
Get the total amount of values that represent this statistic
|
double |
getLast()
Gets the latest value
|
double |
getMax()
Get the maximum value
|
double |
getMin()
Get the minimum value
|
double |
getStandardDeviation()
Get the standard deviation of the stream of values
|
double |
getSum()
Get the sum of the values representing this statistic
|
double |
getVariance()
Get the variance
|
String |
toString() |
void |
update(double val)
Add another value to this statistic
|
public void update(double val)
val - public void clear()
public double getSum()
public int getCount()
public double getAverage()
public double getVariance()
public double getStandardDeviation()
public double getMin()
public double getMax()
public double getLast()
Copyright © 2014. All Rights Reserved.