A function to simulate multi-class data with a linear class-mean trend. The signal dimension is the dimension carrying all of the between-class difference, and the non-signal dimensions are noise.
discr.sims.linear(
n,
d,
K,
signal.scale = 1,
signal.lshift = 1,
non.scale = 1,
rotate = FALSE,
class.equal = TRUE,
ind = FALSE
)the number of samples.
the number of dimensions. The first dimension will be the signal dimension; the remainders noise.
the number of classes in the dataset.
the scaling for the signal dimension. Defaults to 1.
the location shift for the signal dimension between the classes. Defaults to 1.
the scaling for the non-signal dimensions. Defaults to 1.
whether to apply a random rotation. Defaults to TRUE.
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.
whether to sample x and y independently. Defaults to FALSE.