Create uniformly distributed vectors using the algorithm Spherical Fibonacci Spiral points on a sphere algorithm (John Burkardt) or Golden Section Spiral points on a sphere.
Arguments
- n
integer. number of random samples to be generated
- class
character. Coordinate class of the output vectors.
- method
character. The algorithm for generating uniformly distributed vectors. Either
"sfs"
for the "Spherical Fibonacci Spiral points on a sphere","gss"
for "Golden Section Spiral points on a sphere", or the algorithmrotasym::r_unif_sphere()
from the rotasym package.
Details
"sfs"
algorithm is from on John Burkardt (http://people.sc.fsu.edu/~jburkardt/),
"gss
is from http://www.softimageblog.com/archives/115