net.myrrix.common
Class RunningStatistics
java.lang.Object
net.myrrix.common.RunningStatistics
- All Implemented Interfaces:
- RunningAverageAndMinMax, org.apache.mahout.cf.taste.impl.common.RunningAverage, org.apache.mahout.cf.taste.impl.common.RunningAverageAndStdDev
public final class RunningStatistics
- extends Object
- implements org.apache.mahout.cf.taste.impl.common.RunningAverageAndStdDev, RunningAverageAndMinMax
Like implementations of RunningAverageAndStdDev but adds more statistics, like min and max.
- Author:
- Sean Owen
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RunningStatistics
public RunningStatistics()
getCount
public int getCount()
- Specified by:
getCount in interface org.apache.mahout.cf.taste.impl.common.RunningAverage
getAverage
public double getAverage()
- Specified by:
getAverage in interface org.apache.mahout.cf.taste.impl.common.RunningAverage
getStandardDeviation
public double getStandardDeviation()
- Specified by:
getStandardDeviation in interface org.apache.mahout.cf.taste.impl.common.RunningAverageAndStdDev
getMin
public double getMin()
- Specified by:
getMin in interface RunningAverageAndMinMax
getMax
public double getMax()
- Specified by:
getMax in interface RunningAverageAndMinMax
addDatum
public void addDatum(double v)
- Specified by:
addDatum in interface org.apache.mahout.cf.taste.impl.common.RunningAverage
removeDatum
public void removeDatum(double v)
- Specified by:
removeDatum in interface org.apache.mahout.cf.taste.impl.common.RunningAverage
- Throws:
UnsupportedOperationException
changeDatum
public void changeDatum(double v)
- Specified by:
changeDatum in interface org.apache.mahout.cf.taste.impl.common.RunningAverage
- Throws:
UnsupportedOperationException
inverse
public org.apache.mahout.cf.taste.impl.common.RunningAverageAndStdDev inverse()
- Specified by:
inverse in interface org.apache.mahout.cf.taste.impl.common.RunningAverage- Specified by:
inverse in interface org.apache.mahout.cf.taste.impl.common.RunningAverageAndStdDev
getNumClientErrors
public int getNumClientErrors()
incrementClientErrors
public void incrementClientErrors()
getNumServerErrors
public int getNumServerErrors()
incrementServerErrors
public void incrementServerErrors()
Copyright © 2012. All Rights Reserved.