SSJ
V. labo.

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

ConstantIntDist

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)
          .
 
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)
. \begin{tabb}Constructs a new constant distribution with probability 1 at \texttt{c}.
 \end{tabb}

 

Method Detail

toString

public String toString()
. \begin{hide}
 \par
 \begin{tabb}
 Returns a \texttt{String} containing information about the current distribution.
 \end{tabb}\end{hide}

Overrides:
toString in class UniformIntDist

SSJ
V. labo.

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