lol.sims.xor2 {lolR} | R Documentation |
Xor Problem
Description
A function to simulate from the 2-class xor problem.
Usage
lol.sims.xor2(n, d, priors = NULL, fall = 100)
Arguments
n |
the number of samples of the simulated data. |
d |
the dimensionality of the simulated data. |
priors |
the priors for each class. If |
fall |
the falloff for the covariance structuring. Sigma declines by ndim/fall across the variance terms. Defaults to |
Value
A list of class simulation
with the following:
X |
|
Y |
|
mus |
|
Sigmas |
|
priors |
|
simtype |
The name of the simulation. |
params |
Any extraneous parameters the simulation was created with. |
Details
For more details see the help vignette:
vignette("sims", package = "lolR")
Author(s)
Eric Bridgeford
Examples
library(lolR)
data <- lol.sims.xor2(n=200, d=30) # 200 examples of 30 dimensions
X <- data$X; Y <- data$Y