rmult

0th

Percentile

Generate multinomial samples from a probability matrix

Generate multinomial samples

Usage
rmult(p)
Arguments
p

matrix of probabilities, with number of columns the number of classes

Details

Simple function that calls the rmultinom function. It generates a class label for each row of its input matrix of class probabilities.

Value

a vector of class memberships

Aliases
  • rmult
Documentation reproduced from package glmnet, version 3.0-2, License: GPL-2

Community examples

Looks like there are no examples yet.