runifsphere: Random Samples From the Unit Sphere

runifsphereR Documentation

Random Samples From the Unit Sphere

Description

Function to sample uniformly distributed observations on the unit sphere.

Usage

runifsphere(n, p)

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

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

MNM documentation built on May 29, 2024, 8:49 a.m.