public class UpdatingVarCalc extends Object
| Constructor and Description |
|---|
UpdatingVarCalc(double val)
Creates new UpdatingVarCalc.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(double val)
Update the variance with a new value.
|
double |
getStdDev()
Return the standard deviation of the list of values specified to this
object.
|
double |
getSumSquaredDeviations()
Return the sum squared of the list of values specified to this object.
|
double |
getVariance()
Return the variance of the list of values specified to this object.
|
public UpdatingVarCalc(double val)
val - the first of a list of points.public void addValue(double val)
val - a new value.public double getSumSquaredDeviations()
public double getVariance()
public double getStdDev()
Copyright © 2012–2018 Emory University. All rights reserved.