com.google.caliper.util
Class LastNValues

java.lang.Object
  extended by com.google.caliper.util.LastNValues

public class LastNValues
extends Object

Tracks the mean and variance of the last n values seen, where n is fixed at construction.


Constructor Summary
LastNValues(int n)
           
 
Method Summary
 void add(double newVal)
           
 boolean isFull()
           
 double mean()
           
 double normalizedStddev()
           
 double stddev()
           
 double variance()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LastNValues

public LastNValues(int n)
Method Detail

add

public void add(double newVal)

isFull

public boolean isFull()

mean

public double mean()

variance

public double variance()

stddev

public double stddev()

normalizedStddev

public double normalizedStddev()


Copyright © 2009-2011 Google, Inc.. All Rights Reserved.