com.twitter.common.stats
Class Statistics

java.lang.Object
  extended by com.twitter.common.stats.Statistics

public class Statistics
extends Object

A simple class to keep running statistics that require O(1) storage.


Constructor Summary
Statistics()
           
 
Method Summary
 void accumulate(long value)
           
 long max()
           
 double mean()
           
 long min()
           
 long populationSize()
           
 long range()
           
 double standardDeviation()
           
 String toString()
           
 double variance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Statistics

public Statistics()
Method Detail

accumulate

public void accumulate(long value)

variance

public double variance()

standardDeviation

public double standardDeviation()

mean

public double mean()

min

public long min()

max

public long max()

range

public long range()

populationSize

public long populationSize()

toString

public String toString()
Overrides:
toString in class Object