Description Usage Arguments Value
Takes a matrix in which columns sum to one. For each column, performs a single multinomial draw from the rows, weighted by their values in that column
1 |
M |
a matrix whose columns are reals summing to one |
a vector length = ncol(M)
of indices, with each element being
the row that was chosen in that column's sampling
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.