|
SSJ V. labo. |
||||||||
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.GammaDist
umontreal.iro.lecuyer.probdist.ErlangDist
public class ErlangDist
ErlangDist
Extends the class GammaDist for the special case of 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)
. |
|
ErlangDist(int k,
double lambda)
. |
Method Summary | |
---|---|
static double |
barF(int k,
double lambda,
int d,
double x)
. |
static double |
cdf(int k,
double lambda,
int d,
double x)
. |
static double |
density(int k,
double lambda,
double x)
. |
static ErlangDist |
getInstanceFromMLE(double[] x,
int n)
. |
int |
getK()
. |
static double |
getMean(int k,
double lambda)
. |
static double[] |
getMLE(double[] x,
int n)
. |
double[] |
getParams()
. |
static double |
getStandardDeviation(int k,
double lambda)
. |
static double |
getVariance(int k,
double lambda)
. |
static double |
inverseF(int k,
double lambda,
int d,
double u)
. |
void |
setParams(int k,
double lambda,
int d)
. |
String |
toString()
. |
Methods inherited from class umontreal.iro.lecuyer.probdist.GammaDist |
---|
barF, barF, barF, cdf, cdf, cdf, density, density, getAlpha, getLambda, getMean, getMean, getStandardDeviation, getStandardDeviation, getVariance, getVariance, inverseF, inverseF, inverseF, setParams |
Methods inherited from class umontreal.iro.lecuyer.probdist.ContinuousDistribution |
---|
getXinf, getXsup, inverseBisection, inverseBrent, setXinf, setXsup |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ErlangDist(int k)
public ErlangDist(int k, double lambda)
Method Detail |
---|
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 static double[] getMLE(double[] x, int n)
public static ErlangDist getInstanceFromMLE(double[] x, int n)
public static double getMean(int k, double lambda)
public static double getVariance(int k, double lambda)
public static double getStandardDeviation(int k, double lambda)
public int getK()
public void setParams(int k, double lambda, int d)
public double[] getParams()
getParams
in interface Distribution
getParams
in class GammaDist
public String toString()
toString
in class GammaDist
|
SSJ V. labo. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |