es.unex.sextante.libMath.simpleStats
Class SimpleStats

java.lang.Object
  extended by es.unex.sextante.libMath.simpleStats.SimpleStats

public class SimpleStats
extends java.lang.Object

A class to calculate some basic statistics

Author:
volaya

Constructor Summary
SimpleStats()
           
 
Method Summary
 void addValue(double dValue)
          adds a new value to the list of values
 double getCoeffOfVar()
          Returns the coefficient of variation
 int getCount()
          Return the number of values added
 double getMax()
          Returns the maximum value
 double getMean()
          Returns the mean value
 double getMin()
          Returns the minimum value
 double getRMS()
          Returns the Root Mean Squared
 double getStdDev()
          Returns the standard deviation
 double getSum()
          Returns the sum of all values
 double getVariance()
          Returns the variance
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleStats

public SimpleStats()
Method Detail

addValue

public void addValue(double dValue)
adds a new value to the list of values

Parameters:
dValue - the value

getCoeffOfVar

public double getCoeffOfVar()
Returns the coefficient of variation

Returns:
the coefficient of variation

getCount

public int getCount()
Return the number of values added

Returns:
the number of values added

getMax

public double getMax()
Returns the maximum value

Returns:
the maximum value

getMean

public double getMean()
Returns the mean value

Returns:
the mean value

getMin

public double getMin()
Returns the minimum value

Returns:
the minimum value

getRMS

public double getRMS()
Returns the Root Mean Squared

Returns:
the Root Mean Squared

getStdDev

public double getStdDev()
Returns the standard deviation

Returns:
the standard deviation

getSum

public double getSum()
Returns the sum of all values

Returns:
the sum of all values

getVariance

public double getVariance()
Returns the variance

Returns:
the variance