Class: PoissonDisk

qmc.PoissonDisk(d, optionsopt)

Poisson disk sampling (Bridson's algorithm) in the unit hypercube: random points that are never closer than radius to each other, giving blue-noise designs.

Constructor

new PoissonDisk(d, optionsopt)

Parameters:
Name Type Attributes Description
d number

Dimension.

options Object <optional>
Properties
Name Type Attributes Default Description
radius number <optional>
0.05

Minimal distance between points.

ncandidates number <optional>
30

Candidates tried around each active point.

rng Object <optional>

Generator to draw from.

Source:

Methods

fillSpace() → {Array.<Array.<number>>}

Fills the hypercube until no more points fit.

Source:
Returns:
Type
Array.<Array.<number>>