powered by
Generate multinomial samples
rmult(p)
a vector of class memberships
matrix of probabilities, with number of columns the number of classes
Trevor Hastie Maintainer: Trevor Hastie hastie@stanford.edu
Simple function that calls the rmultinom function. It generates a class label for each row of its input matrix of class probabilities.
rmultinom