Learn R Programming

DepthProc (version 2.1.5)

runifsphere: Random number generation from unit sphere.

Description

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

Usage

runifsphere(n, p = 2)

Arguments

n

number of random samples.

p

dimension of the unit sphere.

Examples

Run this code
# NOT RUN {
x <- runifsphere(n = 100)
plot(x)

# }

Run the code above in your browser using DataLab