discr.sims.fat_tails | R Documentation |
A function to simulate data with the same mean that spreads as class id increases.
discr.sims.fat_tails( n, d, K, signal.scale = 1, rotate = FALSE, class.equal = TRUE, ind = FALSE )
n |
the number of samples. |
d |
the number of dimensions. |
K |
the number of classes in the dataset. |
signal.scale |
the scaling for the signal dimension. Defaults to |
rotate |
whether to apply a random rotation. Defaults to |
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 |
ind |
whether to sample x and y independently. Defaults to |
Eric Bridgeford
library(mgc) sim <- discr.sims.fat_tails(100, 3, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.