com.google.caliper.util
Class LastNValues
java.lang.Object
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.
LastNValues
public LastNValues(int n)
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.