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)

zzawadz/DepthProc documentation built on April 6, 2018, 11:43 p.m.