runifsphere {MNM} | R Documentation |
Function to sample uniformly distributed observations on the unit sphere.
runifsphere(n, p)
n |
number of random samples. |
p |
dimension of the unit sphere. |
a matrix.
Klaus Nordhausen, klaus.nordhausen@uta.fi
Oja, H. (2010), Multivariate Nonparametric Methods with R, Springer.
X <- runifsphere(100,2) plot(X, pty = "s")