gen.sample.labels: A helper function for simulating sample labels
Description
A helper function for simulating sample labels
Usage
gen.sample.labels(K, class.equal = TRUE)
Arguments
K
the number of classes
class.equal
whether the number of samples/class should be equal, with each
class having a prior of 1/K, or inequal, in which each class obtains a prior
of k/sum(K) for k=1:K. Defaults to TRUE.