public class NormalDistQuick extends NormalDist
NormalDist (for the normal
distribution with mean μ and variance σ2).
The difference is in the implementation of the methods cdf01,
barF01 and inverseF01, which are faster
but less accurate than those of the class NormalDist.decPrec| Constructor and Description |
|---|
NormalDistQuick()
Constructs a NormalDistQuick object with default parameters μ = 0
and
σ = 1.
|
NormalDistQuick(double mu,
double sigma)
Constructs a NormalDistQuick object with mean μ = mu
and standard deviation σ = sigma.
|
| Modifier and Type | Method and Description |
|---|---|
double |
barF(double x)
Returns the complementary distribution function.
|
static double |
barF(double mu,
double sigma,
double x)
Returns an approximation of
1 - Φ(x), where Φ is the standard
normal distribution function, with mean 0 and variance 1.
|
static double |
barF01(double x)
Same as
barF (0.0, 1.0, x). |
double |
cdf(double x)
Returns the distribution function F(x).
|
static double |
cdf(double mu,
double sigma,
double x)
Returns an approximation of Φ(x), where Φ is the standard
normal distribution function, with mean 0 and variance 1.
|
static double |
cdf01(double x)
Same as
cdf (0.0, 1.0, x). |
double |
inverseF(double u)
Returns the inverse distribution function
x = F-1(u).
|
static double |
inverseF(double mu,
double sigma,
double u)
Returns an approximation of
Φ-1(u), where Φ is the standard
normal distribution function, with mean 0 and variance 1.
|
static double |
inverseF01(double u)
Same as
inverseF (0.0, 1.0, u). |
density, density, density01, getInstanceFromMLE, getMaximumLikelihoodEstimate, getMean, getMean, getMLE, getMu, getParams, getSigma, getStandardDeviation, getStandardDeviation, getVariance, getVariance, setParams, toStringgetXinf, getXsup, inverseBisection, inverseBrent, setXinf, setXsuppublic NormalDistQuick()
public NormalDistQuick(double mu,
double sigma)
public double cdf(double x)
Distributioncdf in interface Distributioncdf in class NormalDistx - value at which the distribution function is evaluatedpublic double barF(double x)
ContinuousDistributionbarF in interface DistributionbarF in class NormalDistx - value at which the complementary distribution function is evaluatedpublic double inverseF(double u)
ContinuousDistributioninverseF in interface DistributioninverseF in class NormalDistu - value at which the inverse distribution function is evaluatedpublic static double cdf01(double x)
cdf (0.0, 1.0, x).public static double cdf(double mu,
double sigma,
double x)
public static double barF01(double x)
barF (0.0, 1.0, x).public static double barF(double mu,
double sigma,
double x)
public static double inverseF01(double u)
inverseF (0.0, 1.0, u).public static double inverseF(double mu,
double sigma,
double u)
To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.