org.gersteinlab.regulation.util
Class SimpleStats

java.lang.Object
  extended by org.gersteinlab.regulation.util.SimpleStats

public class SimpleStats
extends java.lang.Object

        This class provides functions for computing some simple statistics.
        

Version:
1.0 (September 9, 2008)
        Change History:
        1.0     - Initial version
        
Author:
Kevin Yuk-Lap Yip

Constructor Summary
SimpleStats()
           
 
Method Summary
static double getMean(double[] v)
          Compute the mean of a vector.
static double getSD(double[] v)
          Compute the standard deviation of a vector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleStats

public SimpleStats()
Method Detail

getMean

public static double getMean(double[] v)
Compute the mean of a vector.

Parameters:
v - The vector
Returns:
The mean

getSD

public static double getSD(double[] v)
Compute the standard deviation of a vector.

Parameters:
v - The vector
Returns:
The standard deviation