Description Usage Arguments References
View source: R/sample.gumbeltrick.R
Sample a categorical variable when given log-probabilities
1 | sample.gumbeltrick(log.p)
|
log.p |
log of categorical probabilitites; the probabilities do not need to be normalized |
https://timvieira.github.io/blog/post/2014/07/31/gumbel-max-trick/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.