samples from a k-multinomial.
numeric vector with the weights of the multinomial. Sum to 1.
size of the weight vector.
an integer value in [1,k], coded as a 1-of-k variable (see reference).
Bishop, C. M. (2006) _Pattern Recognition and Machine Learning_ Chap. 10, Springer.
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.