Bernoulli
ptolemy.actor.lib.Bernoulli

Produce a random sequence of booleans. The output is of type BooleanToken. The values that are generated are independent and identically distributed, where the probability of true is given by the parameter trueProbability. The seed can be specified as a parameter to control the sequence that is generated. This actor uses the class java.util.Random to generate random numbers. Note that if the parameters are changed during execution of the model, there is a one iteration delay before the changes take effect.

Author(s): Edward A. Lee
Version:$Id: Bernoulli.java,v 1.44 2006/03/30 16:33:59 cxh Exp $
Pt.Proposed Rating:Green (eal)
Pt.Accepted Rating:Green (bilung)




trueProbability
The probability of true. This parameter contains a DoubleToken, initially with value 0.5.