public class DiscreteStatistics
extends java.lang.Object
Constructor and Description |
---|
DiscreteStatistics() |
Modifier and Type | Method and Description |
---|---|
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)
|
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)