sample_random: Generate a random sample of points on the unit sphere
Description
Random sampleRandom sample with minimum exlusion zone ("hard-core process")
Fibonacci coverage of a sphere
Usage
sample_random(N)
sample_hc(N, exclusion = 0.1, maxiter = 200L, k = 30L)
sample_fibonacci(N = 301)
Arguments
exclusion
minimum distance allowed between points
maxiter
maximum number of iterations
k
number of extra new points to try at each iteration
Value
3xN matrix3xN matrix
Functions
-
sample_random
: random sample
-
sample_hc
: random sample with exclusion zone
-
sample_fibonacci
:
Details
Produces a set of points that covers rather uniformly the unit sphere with N points
with a spiral-like pattern based on a Fibonacci sequence
Examples
Run this codesample_random(10)
sample_hc(10)
Run the code above in your browser using DataLab