public final class RunningStatistics extends Object implements org.apache.mahout.cf.taste.impl.common.RunningAverageAndStdDev, RunningAverageAndMinMax, Serializable
RunningAverageAndStdDev but adds more statistics, like min and max.| Constructor and Description |
|---|
RunningStatistics() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDatum(double v) |
void |
changeDatum(double v) |
double |
getAverage() |
int |
getCount() |
double |
getMax() |
double |
getMin() |
double |
getStandardDeviation() |
org.apache.mahout.cf.taste.impl.common.RunningAverageAndStdDev |
inverse() |
void |
removeDatum(double v) |
public int getCount()
getCount in interface org.apache.mahout.cf.taste.impl.common.RunningAveragepublic double getAverage()
getAverage in interface org.apache.mahout.cf.taste.impl.common.RunningAveragepublic double getStandardDeviation()
getStandardDeviation in interface org.apache.mahout.cf.taste.impl.common.RunningAverageAndStdDevpublic double getMin()
getMin in interface RunningAverageAndMinMaxpublic double getMax()
getMax in interface RunningAverageAndMinMaxpublic void addDatum(double v)
addDatum in interface org.apache.mahout.cf.taste.impl.common.RunningAveragepublic void removeDatum(double v)
removeDatum in interface org.apache.mahout.cf.taste.impl.common.RunningAverageUnsupportedOperationExceptionpublic void changeDatum(double v)
changeDatum in interface org.apache.mahout.cf.taste.impl.common.RunningAverageUnsupportedOperationExceptionpublic org.apache.mahout.cf.taste.impl.common.RunningAverageAndStdDev inverse()
inverse in interface org.apache.mahout.cf.taste.impl.common.RunningAverageinverse in interface org.apache.mahout.cf.taste.impl.common.RunningAverageAndStdDevUnsupportedOperationExceptionCopyright © 2012-2013 Myrrix Ltd. All Rights Reserved.