|
SSJ V. 2.6. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectumontreal.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 DistributiongetMean in class DiscreteDistributionpublic double getVariance()
getVariance in interface DistributiongetVariance in class DiscreteDistributionpublic double getStandardDeviation()
getStandardDeviation in interface DistributiongetStandardDeviation in class DiscreteDistributionpublic double inverseF(double u)
inverseF in interface DistributioninverseF in class DiscreteDistributionu - value in the interval (0, 1) for which the inverse
distribution function is evaluated
|
SSJ V. 2.6. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||