Learn R Programming

dissUtils (version 1.0)

unit.hypersphere.volume: Helps When Calculating Densities

Description

Finds the volume of a hypersphere in R^D with radius one.

Usage

unit.hypersphere.volume(D)

Arguments

D
the number of dimensions that the hypersphere extends into

Value

the volume of the unit hypersphere

References

http://en.wikipedia.org/wiki/N-sphere