SSJ
V. 2.6.2.

umontreal.iro.lecuyer.probdist
Class ConstantIntDist

java.lang.Object
  extended by umontreal.iro.lecuyer.probdist.DiscreteDistributionInt
      extended by umontreal.iro.lecuyer.probdist.UniformIntDist
          extended by umontreal.iro.lecuyer.probdist.ConstantIntDist
All Implemented Interfaces:
Distribution

public class ConstantIntDist
extends UniformIntDist

Represents a constant discrete distribution taking a single integer value with probability 1. Its mass function is

p(x) = 1,        for x = c,

and p(x) = 0 elsewhere.


Field Summary
 
Fields inherited from class umontreal.iro.lecuyer.probdist.DiscreteDistributionInt
EPSILON
 
Constructor Summary
ConstantIntDist(int c)
          Constructs a new constant distribution with probability 1 at c.
 
Method Summary
 String toString()
           
 
Methods inherited from class umontreal.iro.lecuyer.probdist.UniformIntDist
barF, barF, cdf, cdf, getI, getInstanceFromMLE, getJ, getMean, getMean, getMLE, getParams, getStandardDeviation, getStandardDeviation, getVariance, getVariance, inverseF, inverseFInt, prob, prob, setParams
 
Methods inherited from class umontreal.iro.lecuyer.probdist.DiscreteDistributionInt
barF, cdf, getXinf, getXsup, inverseF
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConstantIntDist

public ConstantIntDist(int c)
Constructs a new constant distribution with probability 1 at c.

Method Detail

toString

public String toString()
Overrides:
toString in class UniformIntDist

SSJ
V. 2.6.2.

To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.