Bernoulli Variable
A BernoulliVariable models two choices (success, failure) governed by a Bernoulli random variable
Parameters
the parent model element
the Bernoulli random variable with success probability mapped to success.
the thing associated with success. Must have the same type as failure.
the thing associated with failure. Must have the same type as success.
the name of the model element
Constructors
A BernoulliVariable models two choices (success, failure) governed by a Bernoulli random variable
Properties
If true, the stream will automatically participate in having its stream advanced to the next sub-stream via stream managers
Tells the stream to start producing antithetic variates
Provides a reference to the underlying source of randomness during the replication. Controls the underlying BernoulliRV source. This changes the source for the current replication only. The random variable will start to use this source immediately; however, if a replication is started after this method is called, the random source will be reassigned to the initial random source before the next replication is executed. To change the random source for the entire experiment (all replications) use the initialRandomSource property
Provides a reference to the underlying source of randomness to initialize each replication. Controls the underlying BernoulliRV source for the element. This is the source to which each replication will be initialized. This is only used when the replication is initialized. Changing the reference has no effect during a replication.
Returns a randomly selected value
If true, the stream will automatically participate in having its stream reset to its start stream via stream managers
Functions
Positions the RNG at the beginning of its next substream
The resetStartStream method will position the RNG at the beginning of its stream. This is the same location in the stream as assigned when the RNG was created and initialized.
Resets the position of the RNG at the start of the current substream