org.apache.hadoop.mapreduce.v2.app.speculate
Class DataStatistics

java.lang.Object
  extended by org.apache.hadoop.mapreduce.v2.app.speculate.DataStatistics

public class DataStatistics
extends Object


Constructor Summary
DataStatistics()
           
DataStatistics(double initNum)
           
 
Method Summary
 void add(double newNum)
           
 double count()
           
 double mean()
           
 double outlier(float sigma)
           
 double std()
           
 String toString()
           
 void updateStatistics(double old, double update)
           
 double var()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataStatistics

public DataStatistics()

DataStatistics

public DataStatistics(double initNum)
Method Detail

add

public void add(double newNum)

updateStatistics

public void updateStatistics(double old,
                             double update)

mean

public double mean()

var

public double var()

std

public double std()

outlier

public double outlier(float sigma)

count

public double count()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 Apache Software Foundation. All Rights Reserved.