public class RunningStat extends Object
push(double) method to add data from the stream.| Constructor and Description | 
|---|
| RunningStat()Default constructor | 
| RunningStat(double firstValue)Constructor that takes the first value | 
| Modifier and Type | Method and Description | 
|---|---|
| void | clear()Reset the running stats | 
| double | mean()Returns the running mean. | 
| int | numDataValues()Returns the number of data values that have been processed. | 
| void | push(double x)Push a data value from the stream into the calculation. | 
| double | standardDeviation()Returns the running standard deviation | 
| double | variance()Returns the running variance | 
public RunningStat()
public RunningStat(double firstValue)
firstValue - the first value in the streampublic void clear()
public void push(double x)
x - The data value to pushpublic int numDataValues()
public double mean()
public double variance()
public double standardDeviation()