make_swiss_roll: Swiss roll data set

Description Usage Arguments Value Reference Examples

Description

Simulate swiss roll data. The swiss roll data set is used to test various dimension reduction algorithms.

Usage

1

Arguments

nn

The number of data points to be generated.

Value

A data frame with four variables. The three first are the swiss roll data points, the fourth is vector fo colors useful for plotting.

Reference

Dinoj Surendran, Swiss Roll Dataset http://people.cs.uchicago.edu/~dinoj/manifold/swissroll.html

Examples

1
2
xx <- make_swiss_roll(150)
pairs(xx[,1:3], col=xx[,4], pch=16)

opisthokonta/tsnemicrobiota documentation built on June 1, 2019, 9:44 a.m.