Learn R Programming

manifold (version 0.1.2)

runifSphere: Generate uniform random variables on the unit sphere

Description

Generate uniform random variables on the unit sphere

Usage

runifSphere(n, dimAmbient)

Value

A `dimAmbient` by `n` matrix. Each column is a random observation

Arguments

n

Sample size

dimAmbient

The dimension of the ambient space