mgc.sims.spiral {mgc} | R Documentation |
Spiral Simulation
Description
A function for Generating a spiral simulation.
Usage
mgc.sims.spiral(n, d, eps = 0.4, a = 0, b = 5)
Arguments
n |
the number of samples for the simulation. |
d |
the number of dimensions for the simulation setting. |
eps |
the noise level for the simulation. Defaults to |
a |
the lower limit for the data matrix. Defaults |
b |
the upper limit for the data matrix. Defaults to |
Value
a list containing the following:
X |
|
Y |
|
Details
Given: a random variable.
Simumlates
points from
where:
if
i = d
, and otherwise
For more details see the help vignette:
vignette("sims", package = "mgc")
Author(s)
Eric Bridgeford
Examples
library(mgc)
result <- mgc.sims.spiral(n=100, d=10) # simulate 100 samples in 10 dimensions
X <- result$X; Y <- result$Y
[Package mgc version 2.0.2 Index]