org.apache.mahout.cf.taste.impl.common
Class WeightedRunningAverageAndStdDev
java.lang.Object
org.apache.mahout.cf.taste.impl.common.WeightedRunningAverage
org.apache.mahout.cf.taste.impl.common.WeightedRunningAverageAndStdDev
- All Implemented Interfaces:
- Serializable, RunningAverage, RunningAverageAndStdDev
public final class WeightedRunningAverageAndStdDev
- extends WeightedRunningAverage
- implements RunningAverageAndStdDev
This subclass also provides for a weighted estimate of the sample standard deviation.
See estimate formulae here.
- See Also:
- Serialized Form
WeightedRunningAverageAndStdDev
public WeightedRunningAverageAndStdDev()
addDatum
public void addDatum(double datum,
double weight)
- Overrides:
addDatum
in class WeightedRunningAverage
removeDatum
public void removeDatum(double datum,
double weight)
- Overrides:
removeDatum
in class WeightedRunningAverage
changeDatum
public void changeDatum(double delta,
double weight)
- Overrides:
changeDatum
in class WeightedRunningAverage
- Throws:
UnsupportedOperationException
getStandardDeviation
public double getStandardDeviation()
- Specified by:
getStandardDeviation
in interface RunningAverageAndStdDev
- Returns:
- standard deviation of data
toString
public String toString()
- Overrides:
toString
in class WeightedRunningAverage
Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.