de.h2b.scala.lib.math.stat
Boolean distribution: generates true with probability p and false with probabilty 1-p.
true
p
false
1-p
IllegalArgumentException if p not in [0, 1]
IllegalArgumentException
[0, 1]
the next value drawn from this distribution
(Since version ) see corresponding Javadoc for more information.
Boolean distribution: generates
true
with probabilityp
andfalse
with probabilty1-p
.IllegalArgumentException
if p not in[0, 1]