Description Usage Arguments Details Value Author(s) See Also
Sample an integer with the unormalized (log) probabilities specified for each row.
1 |
P |
A matrix conaining unormalizes (log) probabilities in each row. |
log |
Specifies if the input is on a log scale. |
Conceptually, each row is first normalized to sum to one, and then an integer is sampled for each row under the specified probablility.
Returns a gvector with an integer value for each row.
Nathan Morris
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.