public class RunningSumsGaussianAccumulator extends Object implements GaussianAccumulator
| Constructor and Description |
|---|
RunningSumsGaussianAccumulator() |
| Modifier and Type | Method and Description |
|---|---|
void |
compute()
Compute the mean, variance and standard deviation
|
double |
getAverageStd() |
Vector |
getMean() |
double |
getN() |
Vector |
getStd() |
Vector |
getVariance() |
void |
observe(Vector x,
double weight)
Observe the vector
|
public double getN()
getN in interface GaussianAccumulatorpublic Vector getMean()
getMean in interface GaussianAccumulatorpublic Vector getStd()
getStd in interface GaussianAccumulatorpublic double getAverageStd()
getAverageStd in interface GaussianAccumulatorpublic Vector getVariance()
getVariance in interface GaussianAccumulatorpublic void observe(Vector x, double weight)
GaussianAccumulatorobserve in interface GaussianAccumulatorx - a Vectorweight - the double observation weight (usually 1.0)public void compute()
GaussianAccumulatorcompute in interface GaussianAccumulatorCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.