Learn R Programming

geometry (version 0.5.0)

rbox: Generate various point distributions

Description

Default is corners of a hypercube.

Usage

rbox(n = 3000, D = 3, B = 0.5, C = NA)

Value

Matrix of points

Arguments

n

number of random points in hypercube

D

number of dimensions of hypercube

B

bounding box coordinate - faces will be -B and B from origin

C

add a unit hypercube to the output - faces will be -C and C from origin

Author

David Sterratt