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