Maths.MaximumSearchMultiple<T>

References
Utility class for performing multiple far searches.
TType of object.

Constructors

MaximumSearchMultiple

#
public MaximumSearchMultiple(int maximum, double limit)
Create a new, blank maximum search.
maximum (int)Maximum number of instances to keep track of.
limit (double)Limit distance.

MaximumSearchMultiple

#
public MaximumSearchMultiple(int maximum)
Create a new, blank minimum search.
maximum (int)Maximum number of instances to keep track of.

Properties

Count

#
public int Count { get; }
Gets the number of values found so far.

Limit

#
public double Limit { get; }
Gets the limit below which values are not considered.

Maxima

#
public IEnumerable<double> Maxima { get; }
Iterate over all distances in a nearest->furthest order.

Values

#
public IEnumerable<T> Values { get; }
Iterate over all instances in a nearest->furthest order.

Indexers

this[]

#
public (double maximum, T value) this[int index] { get; }
Gets the distance+instance pair at the given index.
index (int)

Methods

Consider

#
public bool Consider(double maximum, T value)
Evaluate a new maximum/value pair.
maximum (double)Maximum associated with value.
value (T)Value associated with maximum.
True if considered value was placed into the results list.