runif_on_sphere {HDiR}R Documentation

Random generation of a sample on a d-dimensional sphere of radius r

Description

This function generates a random sample on the unit sphere.

Usage

runif_on_sphere(n, d, r = 1)

Arguments

n

Size of the sample to be generated.

d

Dimension of the space which contains the sphere.

r

Radius of the sphere.

Value

A matrix of n rows and d columns containing the sample points.

Author(s)

Paula Saavedra-Nieves and Rosa M. Crujeiras.


[Package HDiR version 1.1.3 Index]