twinPeaks: Twin Peaks

Description Usage Arguments Details Value Author(s) Examples

Description

Generates data points from a two- or higher-dimensional Twin Peaks manifold.

Usage

1
2
twinPeaks(Ns, h = 1)
hyperTwinPeaks(Ns, n, h = 1)

Arguments

Ns

number of data points.

n

dimension of the (hyper) plane from which the peaks stand out. For twinPeaks n is 2.

h

height of the peaks.

Details

The height of the points is computed as prod(sin(x_i)), where x_1,...,x_n are the coordinates of the point in the (hyper) plane.

Value

A n+1-dimensional data set, where the last dimension represents the height of the points.

Author(s)

Kerstin Johnsson, Lund University.

Examples

1
2
3
4
5
datap <- twinPeaks(400)
par(mfrow = c(1, 3))
plot(datap[,1], datap[,3])
plot(datap[,2], datap[,3])
plot(datap[,1], datap[,2])

kjohnsson/intrinsicDimension documentation built on June 4, 2019, 8:05 p.m.