Learn R Programming

intrinsicDimension (version 1.2.0)

hyperCube: 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.

Value

A Ns by n matrix.

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.

Examples

Run this code
# NOT RUN {
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])

# }

Run the code above in your browser using DataLab