Function bluenoisers::blue_noise [] [src]

pub fn blue_noise(
    dimensions: Vec<f64>,
    min_distance: f64,
    k_abort: usize
) -> Vec<Vec<f64>>

Generates blue noise samples

Arguments

  • dimensions - How broad in each dimension the space to be filled is. Its length determines the dimensionality, i.e. length n generates an n-dimensional problem space.
  • min_distance - How far away from each other should samples at least be, euclidean distance
  • k_abort - How often should the generator try to generate a valid new neighbor of an existing point before giving that existing point up as starting point. A value of 30 is recommended.

The samples returned are in order of generation. Each sample is at most 2 * min_distance away from a previous sample (except the first sample, of course).