Description Usage Arguments Value Details Author(s) Examples
A function for Generating a spiral simulation.
1 | mgc.sims.spiral(n, d, eps = 0.4, a = 0, b = 5)
|
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 |
a list containing the following:
|
|
|
|
Given: U ~ U(a, b) a random variable.
Simumlates n points from Spiral(X, Y) where:
Xi = U*cos(pi*U)^d if i = d
, and sin(pi*U)*cos(pi*U)^i otherwise
Y = U*sin(pi*U) + eps*p*N(0, 1)
For more details see the help vignette:
vignette("sims", package = "mgc")
Eric Bridgeford
1 2 3 | library(mgc)
result <- mgc.sims.spiral(n=100, d=10) # simulate 100 samples in 10 dimensions
X <- result$X; Y <- result$Y
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.