Description Usage Arguments Value Author(s) See Also
View source: R/randomFunctions.R
This function get a float number between 0 and 1, then generate a bernoulli distribution. This function use cugen function. This function generate 0 if the number that cugen generated is bigger than p, Otherwise it generate 1.
1 | myvar <- brgen(0.5)
|
p |
The probability for bernoulli distribution. |
This function return 0 or 1.
HamidReza Zare (hzare@ce.sharif.ir)
See Also as cugen
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.