Learn R Programming

KODAMA (version 0.0.1)

swissroll: Swiss Roll Data Set Generator

Description

Computes the Swiss Roll data set of a given number of data points.

Usage

swissroll(N=1000)

Arguments

N
Number of data points.

Value

The function returns a three dimensional matrix.

References

Cacciatore S, Luchinat C, Tenori L. Knowledge discovery by accuracy maximization. Proc Natl Acad Sci U S A 2014;111(14):5117-22.

Balasubramanian M, Schwartz EL. The isomap algorithm and topological stability. Science 2002;295(5552):7.

Roweis ST, Saul LK. Nonlinear dimensionality reduction by locally linear embedding. Science 2000;290(5500):2323-6.

See Also

helicoid,dinisurface,spirals

Examples

Run this code
require("rgl")
x=swissroll()
open3d()
plot3d(x, col=rainbow(1050)[-c(1:50)],box=FALSE,type="s",size=1)

Run the code above in your browser using DataLab