public final class RunningStatisticsPerTime extends Object implements RunningAverageAndMinMax, Serializable
| Constructor and Description |
|---|
RunningStatisticsPerTime(TimeUnit timeUnit) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDatum(double value) |
void |
changeDatum(double v) |
double |
getAverage() |
int |
getCount() |
double |
getMax() |
double |
getMin() |
org.apache.mahout.cf.taste.impl.common.RunningAverage |
inverse() |
void |
refresh() |
void |
removeDatum(double v) |
public RunningStatisticsPerTime(TimeUnit timeUnit)
public void refresh()
public void addDatum(double value)
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 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 org.apache.mahout.cf.taste.impl.common.RunningAverage inverse()
inverse in interface org.apache.mahout.cf.taste.impl.common.RunningAverageUnsupportedOperationExceptionpublic double getMin()
getMin in interface RunningAverageAndMinMaxpublic double getMax()
getMax in interface RunningAverageAndMinMaxCopyright © 2012. All Rights Reserved.