|
SSJ V. 1.1.9. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectumontreal.iro.lecuyer.probdist.ContinuousDistribution
umontreal.iro.lecuyer.probdist.ErlangDist
public class ErlangDist
Extends the class ContinuousDistribution for
the Erlang distribution with
shape parameter k > 0 and scale parameter
λ > 0.
This distribution is a special case of the gamma distribution
for which the shape parameter k = α is an integer.
| Field Summary |
|---|
| Fields inherited from class umontreal.iro.lecuyer.probdist.ContinuousDistribution |
|---|
decPrec |
| Constructor Summary | |
|---|---|
ErlangDist(int k)
Constructs a ErlangDist object with parameters k = k and λ = 1. |
|
ErlangDist(int k,
double lambda)
Constructs a ErlangDist object with parameters k = k and λ = lambda. |
|
| Method Summary | |
|---|---|
static double |
barF(int k,
double lambda,
int d,
double x)
Computes the complementary distribution function. |
double |
cdf(double x)
Computes and returns the distribution function F(x). |
static double |
cdf(int k,
double lambda,
int d,
double x)
Computes the distribution function using the gamma distribution function. |
double |
density(double x)
Returns f (x), the density of X evaluated at x. |
static double |
density(int k,
double lambda,
double x)
Computes the density function. |
int |
getK()
Return the parameter k for this object. |
double |
getLambda()
Return the parameter λ for this object. |
static double |
inverseF(int k,
double lambda,
int d,
double u)
Returns the inverse distribution function. |
void |
setParams(int k,
double lambda,
int d)
Sets the parameters k, λ of the distribution for this object. |
| Methods inherited from class umontreal.iro.lecuyer.probdist.ContinuousDistribution |
|---|
barF, inverseBisection, inverseBrent, inverseF |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ErlangDist(int k)
public ErlangDist(int k,
double lambda)
| Method Detail |
|---|
public double density(double x)
ContinuousDistribution
density in class ContinuousDistributionx - value at which the density is evaluated
public double cdf(double x)
Distribution
x - value at which the distribution function is evaluated
public static double density(int k,
double lambda,
double x)
public static double cdf(int k,
double lambda,
int d,
double x)
public static double barF(int k,
double lambda,
int d,
double x)
public static double inverseF(int k,
double lambda,
int d,
double u)
public int getK()
public double getLambda()
public void setParams(int k,
double lambda,
int d)
|
SSJ V. 1.1.9. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||