The function sphere() enables uniform sampling of random i.i.d. points on
a \((d-1)\)-sphere in \(R^d\). The user should provide the number of
points n_samples to be generated on the sphere and the ambient dimension
ambient_dim. The radius of the sphere is optional and is equal to 1 by
default. Only random points generation is currently available.
Arguments
- n_samples
An integer value specifying the sample size.
- ambient_dim
An integer value specifying the dimension of the ambient space.
- radius
A numeric value specifying the radius of the sphere. Defaults to
1.0.