runifsphere: Random number generation from unit sphere.

Description Usage Arguments Author(s) Examples

View source: R/runifsphere.R

Description

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

Usage

1
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

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

DepthProc documentation built on Feb. 4, 2022, 1:07 a.m.