R/RcppExports.R
sample_allocation.Rd
Sample allocation
sample_allocation(prob)
[numeric(C)] The vector of class probabilities.
numeric(C)
An integer 1:C.
1:C
sample_allocation(c(0.5, 0.3, 0.2)) #> [1] 1