Learn R Programming

Rdimtools (version 0.1.2)

aux.gensamples: Generate model-based samples

Description

It generates samples from predefined 3-d shapes, set by dname parameter. Also incorporated a functionality to add white noise with degree noise.

Usage

aux.gensamples(n = 496, noise = 0.1, dname = "swiss")

Arguments

n

the number of points to be generated.

noise

level of additive white noise.

dname

name of a predefined shape. Should be one of

"swiss"

swiss roll

"crown"

crown

"helix"

helix

"saddle"

manifold near saddle point

"ribbon"

ribbon

"bswiss"

broken swiss

"cswiss"

cut swiss

"twinpeaks"

two peaks

Value

an (n-by-3) matrix of generated data by row.

References

van der Maatehn, L., Postma, E. and van den Herik, J. (2009) Dimensionality Reduction : A Comparative Review. TiCC Technical Report 2009-005.

Examples

Run this code
# NOT RUN {
## Generate samples for three different shapes
d1 = aux.gensamples(dname="twinpeaks",noise=0.01)
d2 = aux.gensamples(dname="ribbon",noise=0.01)
d3 = aux.gensamples(dname="crown", noise=0.01)

# }

Run the code above in your browser using DataLab