net.myrrix.common.stats
Class RunningStatisticsPerTime
java.lang.Object
net.myrrix.common.stats.RunningStatisticsPerTime
- All Implemented Interfaces:
- Serializable, RunningAverageAndMinMax, org.apache.mahout.cf.taste.impl.common.RunningAverage
public final class RunningStatisticsPerTime
- extends Object
- implements RunningAverageAndMinMax, Serializable
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RunningStatisticsPerTime
public RunningStatisticsPerTime(TimeUnit timeUnit)
refresh
public void refresh()
addDatum
public void addDatum(double value)
- 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
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
inverse
public org.apache.mahout.cf.taste.impl.common.RunningAverage inverse()
- Specified by:
inverse in interface org.apache.mahout.cf.taste.impl.common.RunningAverage
- Throws:
UnsupportedOperationException
getMin
public double getMin()
- Specified by:
getMin in interface RunningAverageAndMinMax
getMax
public double getMax()
- Specified by:
getMax in interface RunningAverageAndMinMax
Copyright © 2012. All Rights Reserved.