sample_random: Generate a random sample of points on the unit sphere

Description Usage Arguments Details Value Functions Author(s) Examples

View source: R/RcppExports.R

Description

Random sample

Random sample with minimum exlusion zone ("hard-core process")

Fibonacci coverage of a sphere

Usage

1
2
3
4
5
sample_random(N)

sample_hc(N, exclusion = 0.1, maxiter = 200L, k = 30L)

sample_fibonacci(N = 301)

Arguments

N

number of points

exclusion

minimum distance allowed between points

maxiter

maximum number of iterations

k

number of extra new points to try at each iteration

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

Value

3xN matrix

3xN matrix

Functions

Author(s)

baptiste Auguie

Examples

1
2

cda documentation built on May 30, 2017, 6:19 a.m.