com.sun.labs.minion.util
Class DescriptiveStats

java.lang.Object
  extended by com.sun.labs.minion.util.DescriptiveStats

public class DescriptiveStats
extends java.lang.Object

A basic class to provide simple descriptive stats.


Field Summary
protected  int[] logBins
           
protected  int max
           
protected  int min
           
protected  int n
           
protected  int nZeros
           
protected  long sum
           
 
Constructor Summary
DescriptiveStats()
           
 
Method Summary
 void add(int v)
           
 int[] bins()
           
 int max()
           
 double mean()
           
 int min()
           
 int n()
           
 int nZeros()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

min

protected int min

max

protected int max

sum

protected long sum

n

protected int n

logBins

protected int[] logBins

nZeros

protected int nZeros
Constructor Detail

DescriptiveStats

public DescriptiveStats()
Method Detail

add

public void add(int v)

mean

public double mean()

min

public int min()

max

public int max()

n

public int n()

bins

public int[] bins()

nZeros

public int nZeros()