hyperCube {intrinsicDimension} | R Documentation |
Hypercube
Description
Generates a sample from a uniform distribution on a hypercube, the faces of a hypercube or the “edges” of a hyper cube.
Usage
hyperCube(Ns, n, side = 1)
hyperCubeFaces(Ns, n)
hyperCubeEdges(Ns, d, n)
Arguments
Ns |
number of data points. |
d |
dimension of edges. |
n |
dimension of the hypercube. |
side |
the length of the side of the hyper cube. |
Details
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
.
Value
A Ns
by n
matrix.
Author(s)
Kerstin Johnsson, Lund University.
Examples
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])
[Package intrinsicDimension version 1.2.0 Index]