Maths.MaximumSearchMultiple<T>

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

Constructors

MaximumSearchMultiple

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

MaximumSearchMultiple

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

Properties

Count

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

Limit

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

Maxima

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

Values

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

Indexers

this[]

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

Methods

Consider

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