Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bernoulli_rng signature, args #757

Merged
merged 4 commits into from
Apr 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/functions-reference/binary_distributions.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,10 @@ function of y given chance of success `theta`
<!-- R; bernoulli_rng; (reals theta); -->
\index{{\tt \bfseries bernoulli\_rng }!{\tt (reals theta): R}|hyperpage}

`R` **`bernoulli_rng`**`(reals theta)`<br>\newline
Generate a Bernoulli variate with chance of success `theta`; may only be
used in transformed data and generated quantities blocks.
`ints` **`bernoulli_rng`**`(reals theta)`<br>\newline
Generate a Bernoulli variate with chance of success `theta` or an
array of Bernoulli variates given an array of `thetas` of the same dimensions;
may only be used in transformed data and generated quantities blocks.
For a description of argument and return types, see section
[vectorized PRNG functions](conventions_for_probability_functions.qmd#prng-vectorization).
{{< since 2.18 >}}
Expand Down