sampleClassC {NPflow} | R Documentation |
C++ implementation of the multinomial sampling from a matrix of column vectors, each containing the sampling probabilities for their respective draw
Description
C++ implementation of the multinomial sampling from a matrix of column vectors, each containing the sampling probabilities for their respective draw
Usage
sampleClassC(probMat, Log = FALSE)
Arguments
probMat |
a numeric matrix of dim |
Log |
a logical flag indicating whether the provided |
Value
a vector of integer of length n
containing the multinomial draws for each
observation, i.e. the class allocation.
[Package NPflow version 0.13.5 Index]