hcube: Hypercube

Description Usage Arguments Details Value Author(s) Examples

Description

Generates a sample from a uniform distribution on a hypercube, the faces of a hypercube or the “edges” of a hyper cube.

Usage

1
2
3
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

1
2
3
4
5
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])

intrinsicDimension documentation built on June 7, 2019, 5:02 p.m.