public class ChiSquareNoncentralDist extends ContinuousDistribution
ContinuousDistribution for
the noncentral chi-square distribution with ν degrees of freedom
and noncentrality parameter λ, where ν > 0 and
λ > 0.
Its density is
The cumulative probability function can be written as
decPrec| Constructor and Description |
|---|
ChiSquareNoncentralDist(double nu,
double lambda)
Constructs a noncentral chi-square distribution with ν = nu
degrees of freedom and noncentrality parameter λ = lambda.
|
| Modifier and Type | Method and Description |
|---|---|
double |
barF(double x)
Returns the complementary distribution function.
|
static double |
barF(double nu,
double lambda,
double x)
Computes the complementary noncentral chi-square distribution function with
ν = nu degrees of freedom and parameter λ =
lambda.
|
double |
cdf(double x)
Returns the distribution function F(x).
|
static double |
cdf(double nu,
double lambda,
double x)
Computes the noncentral chi-square distribution function
with ν = nu degrees of freedom and parameter λ =
lambda.
|
double |
density(double x)
Returns f (x), the density evaluated at x.
|
static double |
density(double nu,
double lambda,
double x)
Computes the density function for a
noncentral chi-square distribution with ν = nu degrees
of freedom and parameter λ = lambda.
|
double |
getLambda()
Returns the parameter λ of this object.
|
double |
getMean()
Returns the mean.
|
static double |
getMean(double nu,
double lambda)
Computes and returns the mean
E[X] = ν + λ of the
noncentral chi-square distribution with parameters ν =
nu and λ = lambda.
|
double |
getNu()
Returns the parameter ν of this object.
|
double[] |
getParams()
Returns a table containing the parameters of the current distribution.
|
double |
getStandardDeviation()
Returns the standard deviation.
|
static double |
getStandardDeviation(double nu,
double lambda)
Computes and returns the standard deviation of the noncentral
chi-square distribution with parameters ν = nu and λ =
lambda.
|
double |
getVariance()
Returns the variance.
|
static double |
getVariance(double nu,
double lambda)
Computes and returns the variance
Var[X] = 2(ν +2λ) of the noncentral chi-square distribution with parameters
ν = nu and λ = lambda.
|
double |
inverseF(double u)
Returns the inverse distribution function
x = F-1(u).
|
static double |
inverseF(double nu,
double lambda,
double u)
Computes the inverse of the noncentral chi-square distribution with ν =
nu degrees of freedom and parameter λ = lambda.
|
void |
setParams(double nu,
double lambda)
Sets the parameters ν = nu and λ =
lambda of this object.
|
java.lang.String |
toString() |
getXinf, getXsup, inverseBisection, inverseBrent, setXinf, setXsuppublic ChiSquareNoncentralDist(double nu,
double lambda)
public double density(double x)
ContinuousDistributiondensity in class ContinuousDistributionx - value at which the density is evaluatedpublic double cdf(double x)
Distributionx - value at which the distribution function is evaluatedpublic double barF(double x)
ContinuousDistributionbarF in interface DistributionbarF in class ContinuousDistributionx - value at which the complementary distribution function is evaluatedpublic double inverseF(double u)
ContinuousDistributioninverseF in interface DistributioninverseF in class ContinuousDistributionu - value at which the inverse distribution function is evaluatedpublic double getMean()
ContinuousDistributiongetMean in interface DistributiongetMean in class ContinuousDistributionpublic double getVariance()
ContinuousDistributiongetVariance in interface DistributiongetVariance in class ContinuousDistributionpublic double getStandardDeviation()
ContinuousDistributiongetStandardDeviation in interface DistributiongetStandardDeviation in class ContinuousDistributionpublic static double density(double nu,
double lambda,
double x)
public static double cdf(double nu,
double lambda,
double x)
public static double barF(double nu,
double lambda,
double x)
public static double inverseF(double nu,
double lambda,
double u)
public static double getMean(double nu,
double lambda)
public static double getVariance(double nu,
double lambda)
public static double getStandardDeviation(double nu,
double lambda)
public double getNu()
public double getLambda()
public void setParams(double nu,
double lambda)
public double[] getParams()
public java.lang.String toString()
toString in class java.lang.ObjectTo submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.