runifsphere function

Random number generation from unit sphere.

Random number generation from unit sphere.

This function generates random numbers from p-dimensional unit sphere.

runifsphere(n, p = 2)

Arguments

  • n: number of random samples.
  • p: dimension of the unit sphere.

Examples

x <- runifsphere(n = 100) plot(x)

Author(s)

Daniel Kosiorowski, Mateusz Bocian, Anna Wegrzynkiewicz and Zygmunt Zawadzki from Cracow University of Economics.