ca.cas.utilities
Class ConstantDist

java.lang.Object
  extended by ca.cas.utilities.ProbDist
      extended by ca.cas.utilities.ConstantDist

public class ConstantDist
extends ProbDist

Each ConstantDist object represents a probability distribution for which the probability of one particular integer is 1.0 and the value of every other integer is 0.0


Field Summary
 
Fields inherited from class ca.cas.utilities.ProbDist
CONSTANT, EXP, max, min, ONE, POISSON, probs, ZERO
 
Constructor Summary
ConstantDist(int constant)
          Construct a ConstantDist object
 
Method Summary
 
Methods inherited from class ca.cas.utilities.ProbDist
getMax, getProbDist, next, probFor, probMoreThan, probUpTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantDist

public ConstantDist(int constant)
Construct a ConstantDist object

Parameters:
constant - the integer for which there is to be a probability of 1.0