sample_hypersphere {QuadratiK}R Documentation

Generate random sample from the hypersphere

Description

Generate 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)


[Package QuadratiK version 1.1.0 Index]