runifsphere: Random Samples From the Unit Sphere

Description Usage Arguments Value Author(s) References Examples

Description

Function to sample uniformly distributed observations on the unit sphere.

Usage

1

Arguments

n

number of random samples.

p

dimension of the unit sphere.

Value

a matrix.

Author(s)

Klaus Nordhausen

References

Oja, H. (2010), Multivariate Nonparametric Methods with R, Springer.

Examples

1
2
X <- runifsphere(100,2)
plot(X, pty = "s")


Search within the MNM package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.