runifsphere {DepthProc}R Documentation

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.

Author(s)

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

Examples


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


[Package DepthProc version 2.1.3 Index]