Description Usage Arguments Value Details Author(s) Examples
A function for Generating an exponential simulation.
1  | mgc.sims.exp(n, d, eps = 10, ind = FALSE, a = 0, b = 3)
 | 
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   | 
a list containing the following:
 | 
 
  | 
 | 
 
  | 
Given: w[i] = 1/i is a weight-vector that scales with the dimensionality. Simulates n points from Linear(X, Y), where:
X ~ U(a, b)^d
Y = exp(w^T X) + κ ε
and K = 1 if d=1, and 0 otherwise controls the noise for higher dimensions.
Eric Bridgeford
1 2 3  | library(mgc)
result  <- mgc.sims.exp(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.