twinPeaks {intrinsicDimension} | R Documentation |
Generates data points from a two- or higher-dimensional Twin Peaks manifold.
twinPeaks(Ns, h = 1)
hyperTwinPeaks(Ns, n, h = 1)
Ns |
number of data points. |
n |
dimension of the (hyper) plane from which the peaks stand out. For
|
h |
height of the peaks. |
The height of the points is computed as \prod_1^n \sin(x_i)
, where x_1,...,x_n
are the coordinates of the point in
the (hyper) plane.
A n+1
-dimensional data set, where the last dimension represents the
height of the points.
Kerstin Johnsson, Lund University.
datap <- twinPeaks(400)
par(mfrow = c(1, 3))
plot(datap[,1], datap[,3])
plot(datap[,2], datap[,3])
plot(datap[,1], datap[,2])