public class JohnsonSBDist extends ContinuousDistribution
ContinuousDistribution for
the Johnson SB distribution
with shape parameters γ and
δ > 0, location parameter ξ,
and scale parameter λ > 0.
Denoting
y = (x - ξ)/λ, the density is
This class relies on the methods NormalDist.cdf01 and
NormalDist.inverseF01
of NormalDist to approximate Φ and Φ-1.
decPrec| Constructor and Description |
|---|
JohnsonSBDist(double gamma,
double delta,
double xi,
double lambda)
Constructs a JohnsonSBDist object
with shape parameters γ and δ,
location parameter ξ and scale parameter λ.
|
| Modifier and Type | Method and Description |
|---|---|
double |
barF(double x)
Returns the complementary distribution function.
|
static double |
barF(double gamma,
double delta,
double xi,
double lambda,
double x)
Computes the complementary distribution.
|
double |
cdf(double x)
Returns the distribution function F(x).
|
static double |
cdf(double gamma,
double delta,
double xi,
double lambda,
double x)
Computes the distribution function.
|
double |
density(double x)
Returns f (x), the density evaluated at x.
|
static double |
density(double gamma,
double delta,
double xi,
double lambda,
double x)
Computes the density function.
|
double |
getDelta()
Returns the value of δ for this object.
|
double |
getGamma()
Returns the value of γ for this object.
|
double |
getLambda()
Returns the value of λ for this object.
|
double[] |
getParams()
Return a table containing the parameters of the current distribution.
|
double |
getXi()
Returns the value of ξ for this object.
|
double |
inverseF(double u)
Returns the inverse distribution function
x = F-1(u).
|
static double |
inverseF(double gamma,
double delta,
double xi,
double lambda,
double u)
Computes the inverse of the distribution.
|
void |
setParams(double gamma,
double delta,
double xi,
double lambda)
Sets the value of the parameters γ, δ, ξ and
λ for this object.
|
java.lang.String |
toString() |
getMean, getStandardDeviation, getVariance, getXinf, getXsup, inverseBisection, inverseBrent, setXinf, setXsuppublic JohnsonSBDist(double gamma,
double delta,
double xi,
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 static double density(double gamma,
double delta,
double xi,
double lambda,
double x)
public static double cdf(double gamma,
double delta,
double xi,
double lambda,
double x)
public static double barF(double gamma,
double delta,
double xi,
double lambda,
double x)
public static double inverseF(double gamma,
double delta,
double xi,
double lambda,
double u)
public double getGamma()
public double getDelta()
public double getXi()
public double getLambda()
public void setParams(double gamma,
double delta,
double xi,
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.