|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--pal.statistics.DiscreteStatistics
simple discrete statistics (mean, variance, cumulative probability, quantiles etc.)
Constructor Summary | |
DiscreteStatistics()
|
Method Summary | |
static double |
cdf(double z,
double[] x)
compute the cumulative probability Pr(x <= z) for a given z and a distribution of x |
static double |
cdf(double z,
double[] x,
int[] indices)
compute the cumulative probability Pr(x <= z) for a given z and a distribution of x |
static double |
mean(double[] x)
compute mean |
static double |
quantile(double q,
double[] x)
compute the q-th quantile for a distribution of x (= inverse cdf) |
static double |
quantile(double q,
double[] x,
int[] indices)
compute the q-th quantile for a distribution of x (= inverse cdf) |
static double |
skewness(double[] x)
compute fisher skewness |
static double |
stdev(double[] x)
compute standard deviation |
static double |
variance(double[] x)
compute variance (ML estimator) |
static double |
variance(double[] x,
double mean)
compute variance (ML estimator) |
static double |
varianceSampleMean(double[] x)
compute variance of sample mean (ML estimator) |
static double |
varianceSampleMean(double[] x,
double mean)
compute variance of sample mean (ML estimator) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DiscreteStatistics()
Method Detail |
public static double mean(double[] x)
x
- list of numberspublic static double variance(double[] x, double mean)
x
- list of numbersmean
- assumed mean of xpublic static double skewness(double[] x)
x
- list of numberspublic static double stdev(double[] x)
x
- list of numberspublic static double variance(double[] x)
x
- list of numberspublic static double varianceSampleMean(double[] x, double mean)
x
- list of numbersmean
- assumed mean of xpublic static double varianceSampleMean(double[] x)
x
- list of numberspublic static double quantile(double q, double[] x, int[] indices)
q
- quantile (0 < q <= 1)x
- discrete distribution (an unordered list of numbers)indices
- index sorting xpublic static double quantile(double q, double[] x)
q
- quantile (0 <= q <= 1)x
- discrete distribution (an unordered list of numbers)public static double cdf(double z, double[] x, int[] indices)
z
- threshold valuex
- discrete distribution (an unordered list of numbers)indices
- index sorting xpublic static double cdf(double z, double[] x)
z
- threshold valuex
- discrete distribution (an unordered list of numbers)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |