Maths.PseudoRandom.PoissonSetup

References
public sealed class Maths.PseudoRandom.PoissonSetup
Describes the initial setup for a two-dimensional Poisson sampling.

Constructors

PoissonSetup

#
public PoissonSetup(Point2d min, Point2d max, double radius)
Create a new poisson distribution setup.
min (Point2d)First corner of poisson region.
max (Point2d)Second corner of poisson region.
radius (double)Minimum radius between samples.

Properties

MaximumPointCount

#
public int MaximumPointCount { get; set; }
Gets or sets the maximum allowed points.

Radius

#
public double Radius { get; }
Gets the minimum allowed distance between adjacent loci in the distribution.

SamplesPerPoint

#
public int SamplesPerPoint { get; set; }
Gets or sets the number of sampling attempts to use per active site. Higher values will result in better outcomes but take a longer time to compute. We recommend 30 samples per site per iteration.

SamplingScaleFactor

#
public double SamplingScaleFactor { get; set; }
Gets or sets the sampling radius scaling factor. This factor controls by how much farther than the radius new samples will be inserted into the distribution from active sites. Scaling factors can be between one and two, where smaller factors will yield a tighter pattern, but also require more samples-per-point to fully complete.

Seeds

#
public IEnumerable<Point2d> Seeds { get; }
Enumerate over all seeds. If no seed points have been set, this property will return the middle point of the region.

Token

#
public CancellationToken Token { get; set; }
Gets or sets a cancellation token to be used.

X0

#
public double X0 { get; }
Gets the lowest x reach of the poisson region.

X1

#
public double X1 { get; }
Gets the highest x reach of the poisson region.

Y0

#
public double Y0 { get; }
Gets the lowest y reach of the poisson region.

Y1

#
public double Y1 { get; }
Gets the highest y reach of the poisson region.

Methods

AddSeed

#
public void AddSeed(Point2d point)
Add a seed point to the distribution.
point (Point2d)