mgc.sims.exp {mgc} | R Documentation |
Exponential Simulation
Description
A function for Generating an exponential simulation.
Usage
mgc.sims.exp(n, d, eps = 10, ind = FALSE, a = 0, b = 3)
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 |
ind |
whether to sample x and y independently. Defaults to |
a |
the lower limit for the range of the data matrix. Defaults to |
b |
the upper limit for the range of the data matrix. Defaults to |
Value
a list containing the following:
X |
|
Y |
|
Details
Given: is a weight-vector that scales with the dimensionality.
Simulates
points from
, where:
and controls the noise for higher dimensions.
Author(s)
Eric Bridgeford
Examples
library(mgc)
result <- mgc.sims.exp(n=100, d=10) # simulate 100 samples in 10 dimensions
X <- result$X; Y <- result$Y
[Package mgc version 2.0.2 Index]