public abstract class ContinuousDistribution extends java.lang.Object implements Distribution
| Modifier and Type | Field and Description |
|---|---|
int |
decPrec |
| Constructor and Description |
|---|
ContinuousDistribution() |
| Modifier and Type | Method and Description |
|---|---|
double |
barF(double x)
Returns the complementary distribution function.
|
abstract double |
density(double x)
Returns f (x), the density evaluated at x.
|
double |
getMean()
Returns the mean.
|
double |
getStandardDeviation()
Returns the standard deviation.
|
double |
getVariance()
Returns the variance.
|
double |
getXinf()
Returns xa such that the probability density is 0 everywhere
outside the interval
[xa, xb].
|
double |
getXsup()
Returns xb such that the probability density is 0 everywhere
outside the interval
[xa, xb].
|
double |
inverseBisection(double u)
Computes and returns the inverse distribution function
x = F-1(u),
using bisection.
|
double |
inverseBrent(double a,
double b,
double u,
double tol)
Computes the inverse distribution function
x = F-1(u),
using the Brent-Dekker method.
|
double |
inverseF(double u)
Returns the inverse distribution function
x = F-1(u).
|
void |
setXinf(double xa)
Sets the value xa = xa, such that the probability
density is 0 everywhere outside the interval
[xa, xb].
|
void |
setXsup(double xb)
Sets the value xb = xb, such that the probability
density is 0 everywhere outside the interval
[xa, xb].
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcdf, getParamspublic abstract double density(double x)
x - value at which the density is evaluatedpublic double barF(double x)
barF in interface Distributionx - value at which the complementary distribution function is evaluatedpublic double inverseBrent(double a,
double b,
double u,
double tol)
a - left endpoint of initial intervalb - right endpoint of initial intervalu - value at which the inverse distribution function is evaluatedtol - accuracy goalpublic double inverseBisection(double u)
u - value at which the inverse distribution function is evaluatedjava.lang.IllegalArgumentException - if u is not in the interval [0, 1]public double inverseF(double u)
inverseF in interface Distributionu - value at which the inverse distribution function is evaluatedjava.lang.IllegalArgumentException - if u is not in the interval [0, 1]public double getMean()
getMean in interface Distributionpublic double getVariance()
getVariance in interface Distributionpublic double getStandardDeviation()
getStandardDeviation in interface Distributionpublic double getXinf()
public double getXsup()
public void setXinf(double xa)
xa - lower limit of supportpublic void setXsup(double xb)
xb - upper limit of supportTo submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.