net.myrrix.common.stats
Class RunningStatisticsPerTime

java.lang.Object
  extended by 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

Constructor Summary
RunningStatisticsPerTime(TimeUnit timeUnit)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RunningStatisticsPerTime

public RunningStatisticsPerTime(TimeUnit timeUnit)
Method Detail

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.