Learn R Programming

DepthProc (version 1.0.7)

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
x = runifsphere(n=100)
 plot(x)

Run the code above in your browser using DataLab