|
SSJ V. 2.6.2. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object umontreal.iro.lecuyer.probdist.DiscreteDistribution umontreal.iro.lecuyer.probdist.ConstantDist
public class ConstantDist
Represents a constant discrete distribution taking a single real value with probability 1. Its mass function is
Constructor Summary | |
---|---|
ConstantDist(double c)
Constructs a new constant distribution with probability 1 at c. |
Method Summary | |
---|---|
double |
getMean()
Returns the mean E[X] = c. |
double |
getStandardDeviation()
Returns the standard deviation = 0. |
double |
getVariance()
Returns the variance Var[X] = 0. |
double |
inverseF(double u)
Returns the inverse distribution function c = F-1(u). |
Methods inherited from class umontreal.iro.lecuyer.probdist.DiscreteDistribution |
---|
barF, cdf, getN, getParams, getValue, getXinf, getXsup, prob, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConstantDist(double c)
Method Detail |
---|
public double getMean()
getMean
in interface Distribution
getMean
in class DiscreteDistribution
public double getVariance()
getVariance
in interface Distribution
getVariance
in class DiscreteDistribution
public double getStandardDeviation()
getStandardDeviation
in interface Distribution
getStandardDeviation
in class DiscreteDistribution
public double inverseF(double u)
inverseF
in interface Distribution
inverseF
in class DiscreteDistribution
u
- value in the interval (0, 1) for which the inverse
distribution function is evaluated
|
SSJ V. 2.6.2. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |