gen_swissroll | R Documentation |
This function generates swiss roll data.
gen_swissroll(n = 500, p = 4, w = c(-1, 1))
n |
A numeric value (default: 500) representing the sample size. |
p |
A numeric value (default: 4) representing the number of dimensions. |
w |
A numeric vector (default: c(-1, 1)) representing the vertical variation. |
A data containing the generated swiss roll data.
Agrafiotis, D. K., & Xu, H. (2002). A self-organizing principle for learning nonlinear manifolds. Proceedings of the National Academy of Sciences, 99(25), 15869-15872.
Roweis, S. T., & Saul, L. K. (2000). Nonlinear dimensionality reduction by locally linear embedding. Science, 290(5500), 2323-2326.
set.seed(20240412)
swissroll <- gen_swissroll(n = 500, p = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.