hyperCube {intrinsicDimension} | R Documentation |
Generates a sample from a uniform distribution on a hypercube, the faces of a hypercube or the “edges” of a hyper cube.
hyperCube(Ns, n, side = 1)
hyperCubeFaces(Ns, n)
hyperCubeEdges(Ns, d, n)
Ns |
number of data points. |
d |
dimension of edges. |
n |
dimension of the hypercube. |
side |
the length of the side of the hyper cube. |
The hypercube is [0,1]^n
. The edges of dimension d
of the
hypercube are the d
-dimensional boundaries of the hypercube. The
hypercube faces are the hyper cube edges of dimension n-1
.
A Ns
by n
matrix.
Kerstin Johnsson, Lund University.
datap <- hyperCubeEdges(200, 1, 3)
par(mfrow = c(1, 3))
plot(datap[, 1], datap[, 2])
plot(datap[, 1], datap[, 3])
plot(datap[, 2], datap[, 3])