public class AveStatBox extends java.lang.Object implements StatBox
toString()
method prints both average and standard error.Modifier and Type | Field and Description |
---|---|
private int |
count |
private double |
sum |
private double |
sumOfSqs |
Constructor and Description |
---|
AveStatBox() |
Modifier and Type | Method and Description |
---|---|
void |
add(AveStatBox box)
Merges the results of this AveStatBox and the given AveStatBox.
|
void |
add(double val)
Adds val to this running average and standard deviation.
|
void |
add(StatBox box)
Adds the value of the StatBox to this AveStatBox.
|
double |
getValue()
Returns the average of all points seen thus far.
|
java.lang.String |
toString()
Returns mean+-stdErr.
|
public void add(AveStatBox box)
public void add(double val)
public void add(StatBox box)
public double getValue()
public java.lang.String toString()
toString
in class java.lang.Object