| hypcube_smc | R Documentation |
This function generates a Simple Monte Carlo (SMC) random design matrix over the hypercube.
hypcube_smc(n, d, lbound = NA_real_, ubound = NA_real_)
n |
Integer. The number of samples points of the hypercube. |
d |
Integer. The the dimension of the hypercube. |
lbound |
Numeric vector of length |
ubound |
Numeric vector of length |
A n x d matrix containing the SMC design. Each
element is scaled to the range defined by lbound and
ubound.
x = hypcube_smc(100, 2)
plot(x, xlim = c(0,1), ylim = c(0,1))
rug(x[,1]); rug(x[,2], side = 2)
x = hypcube_smc(100, 2, lbound = c(-5,1), ubound = c(10,3))
plot(x, xlim = c(-5,10), ylim = c(1,3))
rug(x[,1]); rug(x[,2], side = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.