Stan Math Library
5.0.0
Automatic Differentiation
|
|
inline |
Return a draw from a Categorical distribution given a a vector of unnormalized log probabilities and a psuedo-random number generator.
This is a convenience wrapper around categorical_rng(softmax(beta), rng)
.
RNG | Type of pseudo-random number generator. |
beta | Vector of unnormalized log probabilities. |
rng | Pseudo-random number generator. |
Definition at line 29 of file categorical_logit_rng.hpp.