mgc.sims.ubern {mgc} | R Documentation |
Uncorrelated Bernoulli Simulation
Description
A function for Generating an uncorrelated bernoulli simulation.
Usage
mgc.sims.ubern(n, d, eps = 0.5, p = 0.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 |
p |
the bernoulli probability. |
Value
a list containing the following:
X |
|
Y |
|
Details
Given: is a weight-vector that scales with the dimensionality.
Simumlates
points from
where:
For more details see the help vignette:
vignette("sims", package = "mgc")
Author(s)
Eric Bridgeford
Examples
library(mgc)
result <- mgc.sims.ubern(n=100, d=10) # simulate 100 samples in 10 dimensions
X <- result$X; Y <- result$Y
[Package mgc version 2.0.2 Index]