|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcodesimian.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 double[] |
aveDev(double[] d)
returns new double[]{average,standard deviation} |
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 aveZeroStdDevOne)
Returns the approximate percentile (0.0 - 1.0) of gaussianNumber on a bell curve, the fraction of the area under the bell curve is toward negative. |
static byte[] |
nextBytes(int quantity)
Deprecated. |
static double |
nextDouble01()
Deprecated. |
static float |
nextFloat01()
Deprecated. |
static int |
nextInt(int end)
Deprecated. |
static double |
percentileToGaussian(double percentileFraction)
Approximate average 0.0 and standard deviation 1.0. |
static double |
positiveGaussianToPercentile(double positiveGaussianNumber)
|
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 aveZeroStdDevOne)
public static double positiveGaussianToPercentile(double positiveGaussianNumber)
public static double bellCurveHeight(double x)
public static void aveZeroDevOne(double[] d)
public static double[] aveDev(double[] d)
@Deprecated public static int nextInt(int end)
@Deprecated public static double nextDouble01()
@Deprecated public static float nextFloat01()
@Deprecated public static byte[] nextBytes(int quantity)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |