sampleClassC | R Documentation |
C++ implementation of the multinomial sampling from a matrix of column vectors, each containing the sampling probabilities for their respective draw
sampleClassC(probMat, Log = FALSE)
probMat |
a numeric matrix of dim |
Log |
a logical flag indicating whether the provided |
a vector of integer of length n
containing the multinomial draws for each
observation, i.e. the class allocation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.