R/utility.R
sample_hypersphere.Rd
Generate a random sample from the uniform distribution on the hypersphere.
sample_hypersphere(d, n_points = 1)
Number of dimensions.
Number of sampled observations.
Data matrix with the sampled observations.
x_sp <- sample_hypersphere(3,100)