

PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 
java.lang.Object codesimian.Statistics
public class Statistics
Statistical functions for bell curves. (more later)
Constructor Summary  

Statistics()

Method Summary  

static double[] 
approximateBellCurve(int arraySize)
Returns a sorted double[] with (always the same numbers in the same program execution) pseudorandom GAUSSIAN values, ave 0 std dev 1. 
static void 
aveZeroDevOne(double[] d)
calculates the average and standard deviation of d[] and changes its values to have average 0 and deviation 1. 
static double 
bellCurveHeight(double x)
Returns the EXACT (except for roundoff) height of a bell curve at position x (any number), with average 0 and standard deviation 1. 
static double 
gaussianToPercentile(double gaussianNumber)
Returns the approximate percentile (0.0  1.0) of gaussianNumber on a bell curve, the fraction of the area under the curve is toward negative. 
static double 
percentileToGaussian(double percentileFraction)
Approximate average 0.0 and standard deviation 1.0. 
Methods inherited from class java.lang.Object 

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
Constructor Detail 

public Statistics()
Method Detail 

public static double[] approximateBellCurve(int arraySize)
public static double percentileToGaussian(double percentileFraction)
public static double gaussianToPercentile(double gaussianNumber)
public static double bellCurveHeight(double x)
public static void aveZeroDevOne(double[] d)


PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 