Description Usage Arguments Author(s) Examples
A function to simulate data with a crossed layout.
1 2 | badmf.sims.cross(n, d, K = 2, signal.scale = 10, non.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 |
non.scale |
the scaling for the non-signal dimensions. 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
1 2 3 | library(badmf)
sim <- badmf.sims.cross(100, 3)
X <- sim$X; Y <- sim$Y
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.