|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectbaseCode.math.Stats
Miscellaneous functions used for statistical analysis. Some are optimized or specialized versions of methods that can be found elsewhere.
Copyright (c) 2004
Columbia University
| Method Summary | |
static cern.colt.list.DoubleArrayList |
cdf(cern.colt.list.DoubleArrayList x)
Convert an array into a cumulative density function (CDF). |
static cern.colt.list.DoubleArrayList |
cumulate(cern.colt.list.DoubleArrayList x)
Convert an array into a cumulative array. |
static cern.colt.list.DoubleArrayList |
cumulateRight(cern.colt.list.DoubleArrayList x)
Convert an array into a cumulative array. |
static double |
cv(cern.colt.list.DoubleArrayList data)
Compute the coefficient of variation of an array (standard deviation / mean) |
static boolean |
isValidFraction(double value)
Test whether a value is a valid fractional or probability value. |
static double |
meanAboveQuantile(int index,
double[] array,
int effectiveSize)
calculate the mean of the values above (NOT greater or equal to) a particular index rank of an array. |
static cern.colt.list.DoubleArrayList |
normalize(cern.colt.list.DoubleArrayList x)
Adjust the elements of an array so they total to 1.0. |
static cern.colt.list.DoubleArrayList |
normalize(cern.colt.list.DoubleArrayList x,
double normfactor)
Divide the elements of an array by a given factor. |
static double |
quantile(int index,
double[] values,
int effectiveSize)
Given a double array, calculate the quantile requested. |
static double |
range(cern.colt.list.DoubleArrayList data)
Compute the range of an array. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static boolean isValidFraction(double value)
value -
public static double cv(cern.colt.list.DoubleArrayList data)
data - DoubleArrayList
public static cern.colt.list.DoubleArrayList cumulate(cern.colt.list.DoubleArrayList x)
x - DoubleArrayList
public static cern.colt.list.DoubleArrayList cumulateRight(cern.colt.list.DoubleArrayList x)
x - the array of data to be cumulated.
public static cern.colt.list.DoubleArrayList cdf(cern.colt.list.DoubleArrayList x)
x - The input of counts (i.e. a histogram).
public static cern.colt.list.DoubleArrayList normalize(cern.colt.list.DoubleArrayList x,
double normfactor)
x - Input array.normfactor - double
public static cern.colt.list.DoubleArrayList normalize(cern.colt.list.DoubleArrayList x)
x - Input array.
public static double meanAboveQuantile(int index,
double[] array,
int effectiveSize)
index - the rank of the value we wish to average above.array - Array for which we want to get the quantile.effectiveSize - The size of the array, not including NaNs.
DescriptiveWithMissing.meanAboveQuantile(int, cern.colt.list.DoubleArrayList)public static double range(cern.colt.list.DoubleArrayList data)
data - DoubleArrayList
public static double quantile(int index,
double[] values,
int effectiveSize)
index - - the rank of the value we wish to get. Thus if we have 200 items in the array, and want the median,
we should enter 100.values - double[] - array of data we want quantile ofeffectiveSize - int the effective size of the array
DescriptiveWithMissing.quantile(cern.colt.list.DoubleArrayList, double)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||