|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.clustering.RunningSumsGaussianAccumulator
public class RunningSumsGaussianAccumulator
An online Gaussian accumulator that uses a running power sums approach as reported on http://en.wikipedia.org/wiki/Standard_deviation Suffers from overflow, underflow and roundoff error but has minimal observe-time overhead
Constructor Summary | |
---|---|
RunningSumsGaussianAccumulator()
|
Method Summary | |
---|---|
void |
compute()
Compute the mean, variance and standard deviation |
double |
getAverageStd()
|
Vector |
getMean()
|
double |
getN()
|
Vector |
getStd()
|
Vector |
getVariance()
|
void |
observe(Vector x)
Observe the vector |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RunningSumsGaussianAccumulator()
Method Detail |
---|
public double getN()
getN
in interface GaussianAccumulator
public Vector getMean()
getMean
in interface GaussianAccumulator
public Vector getStd()
getStd
in interface GaussianAccumulator
public double getAverageStd()
getAverageStd
in interface GaussianAccumulator
public Vector getVariance()
getVariance
in interface GaussianAccumulator
public void observe(Vector x)
GaussianAccumulator
observe
in interface GaussianAccumulator
x
- a Vectorpublic void compute()
GaussianAccumulator
compute
in interface GaussianAccumulator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |