|
A function that can be used in Formulas.
randomBernoulli#
(n
, p
)
n
independent Bernoulli-distributed (randomBernoulli
) zeroes and ones.randomBernoulli#
(model#
, p
)
model#
, and fill all elements with independent Bernoulli-distributed zeroes and ones. This is shorthand for doing randomBernoulli# (size (model#), p)
© Paul Boersma 2023