public class FloatStatistics
extends Object
Modifier and Type | Field and Description |
---|---|
int |
count |
float |
max |
float |
min |
(package private) String |
name |
private float |
square_sum |
float |
sum |
Constructor and Description |
---|
FloatStatistics(String n) |
Modifier and Type | Method and Description |
---|---|
void |
addValue(float val)
Add a value to the set.
|
float |
getAverage()
Get the average of the series so far.
|
float |
getStdDeviation()
Get the standard deviation of the series so far.
|
void |
reset()
Resets all the statistics associated with the statistics object.
|
String name
public int count
public float max
public float min
public float sum
private float square_sum
public FloatStatistics(String n)
n
- the name of the variable captured by these stats.public void reset()
public void addValue(float val)
val
- public float getAverage()
public float getStdDeviation()