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

View source: R/RcppExports.R

sample_randomR Documentation

Generate a random sample of points on the unit sphere

Description

Random sample

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

Random sample with minimum exlusion zone enforced

Fibonacci coverage of a sphere

Usage

sample_random(N)

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

sample_landings(N, exclusion = 0.1)

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

3xN matrix

Functions

  • sample_random: random sample

  • sample_hc: random sample with exclusion zone

  • sample_landings: random sample with exclusion zone

  • sample_fibonacci:

Author(s)

baptiste Auguie

Examples

sample_random(10)
sample_hc(10)
sample_landings(10)

baptiste/cda documentation built on May 6, 2022, 5:52 a.m.