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