rvl.stat
Class Stat

java.lang.Object
  |
  +--rvl.stat.Stat

public class Stat
extends java.lang.Object

Basic statistics calculations


Constructor Summary
Stat()
           
 
Method Summary
static double mean(double[] x)
           
static double[] meanSD(double[] x)
           
static double sd(double[] x)
           
static double sd(double[] x, double mean)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Stat

public Stat()
Method Detail

mean

public static double mean(double[] x)
Returns:
the mean of x[]

sd

public static double sd(double[] x,
                        double mean)
Returns:
the SD of x[], given the mean is already calculated

sd

public static double sd(double[] x)
Returns:
sd of x[]

meanSD

public static double[] meanSD(double[] x)
Returns:
an array of two elements with the mean and SD of x[]