| |||||||||||
| |||||||||||
Synopsis | |||||||||||
| |||||||||||
Documentation | |||||||||||
| |||||||||||
Generate a Bernoulli variate with the given probability. For Bool results, bernoulli p will return True (p*100)% of the time and False otherwise. For numerical types, True is replaced by 1 and False by 0. | |||||||||||
| |||||||||||
A random variable whose value is True the given fraction of the time and False the rest. | |||||||||||
| |||||||||||
| |||||||||||
generalBernoulli t f p generates a random variable whose value is t with probability p and f with probability 1-p. | |||||||||||
| |||||||||||
| |||||||||||
Produced by Haddock version 2.4.2 |