public class ApproxFastChiSquareDistribution
extends GammaDistribution
chi-square distribution (distribution of sum of squares of n uniform random variables) (Parameter: n; mean: n; variance: 2*n) The chi-square distribution is a special case of the Gamma distribution (shape parameter = n/2.0, scale = 2.0).
public ApproxFastChiSquareDistribution(int maxX,
int maxN)
public static double pdf(double x,
double n)
probability density function of the chi-square distribution
x - argumentn - degrees of freedompublic static double cdf(double x,
double n)
cumulative density function of the chi-square distribution
x - argumentn - degrees of freedompublic double cdfFastApprox(double x,
double n)
cumulative density function of the chi-square distribution
x - argumentn - degrees of freedompublic static double quantile(double y,
double n)
quantile (inverse cumulative density function) of the chi-square distribution
n - degrees of freedompublic static double mean(double n)
mean of the chi-square distribution
n - degrees of freedompublic static double variance(double n)
variance of the chi-square distribution
n - degrees of freedom