sample_hypersphere: Generate random sample from the hypersphere

View source: R/utility.R

sample_hypersphereR Documentation

Generate random sample from the hypersphere

Description

Generate a random sample from the uniform distribution on the hypersphere.

Usage

sample_hypersphere(d, n_points = 1)

Arguments

d

Number of dimensions.

n_points

Number of sampled observations.

Value

Data matrix with the sampled observations.

Examples

x_sp <- sample_hypersphere(3,100)


QuadratiK documentation built on Oct. 29, 2024, 5:08 p.m.