![]() |
Stan Math Library
5.1.0
Automatic Differentiation
|
|
inline |
Return a draw from a Multinomial distribution given a probability simplex, a total count, and a pseudo-random number generator.
| RNG | Type of pseudo-random number generator. |
| theta | Vector of normalized probabilities. |
| N | Total count. |
| rng | Pseudo-random number generator. |
| std::domain_error | if theta is not a simplex. |
| std::domain_error | is N is less than 0. |
Definition at line 28 of file multinomial_rng.hpp.