a numeric vector of randomly distributed 0s and 1s
Arguments
n
numeric, a vector of 0 and 1 (see Details)
Details
The algorithm implements a Gellerman-like series based on
Herrera, D., & Treviño, M. (2015). http://doi.org/10.1371/journal.pone.0136084
The algorithm samples from a binomial distribution and imposes two restrictions
no more than 3 consecutive values of 0s or 1s.
the number of trials 0 or 1 must be the same for a given n.