org.shapelogic.mathematics
Class StorelessDiscriptiveStatistic

java.lang.Object
  extended by org.shapelogic.mathematics.StorelessDiscriptiveStatistic

public class StorelessDiscriptiveStatistic
extends java.lang.Object

Find min, max, mean, standard deviation, variance.
This exist in Apache Commons Math, but each statistic would have to be done individually.

Author:
Sami Badawi

Constructor Summary
StorelessDiscriptiveStatistic()
           
 
Method Summary
 void clear()
          Reset the object for reuse.
 int getCount()
           
 double getMax()
           
 double getMean()
           
 double getMin()
           
 double getStandardDeviation()
          The biased estimator for Standard Deviation.
 double getTotal()
           
 double getTotalSquare()
           
 double getVariance()
          The biased estimator for variance.
 void increment(double input)
          Add an extra element to be part of the input.
 void merge(StorelessDiscriptiveStatistic input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StorelessDiscriptiveStatistic

public StorelessDiscriptiveStatistic()
Method Detail

increment

public void increment(double input)
Add an extra element to be part of the input.


clear

public void clear()
Reset the object for reuse.


getMin

public double getMin()

getMax

public double getMax()

getTotal

public double getTotal()

getTotalSquare

public double getTotalSquare()

getCount

public int getCount()

getMean

public double getMean()

getStandardDeviation

public double getStandardDeviation()
The biased estimator for Standard Deviation.


getVariance

public double getVariance()
The biased estimator for variance.


merge

public void merge(StorelessDiscriptiveStatistic input)


Copyright © 2009. All Rights Reserved.