Maths.MinimumSearchMultiple<T>

Utility class for performing multiple near searches.
TType of object.

Constructors

MinimumSearchMultiple

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

MinimumSearchMultiple

#
Create a new, blank minimum search.
public MinimumSearchMultiple(
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 above which values are not considered.
public double Limit { get; }

Minima

#
Iterate over all distances in a nearest->furthest order.
public IEnumerable<double> Minima { 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 minimum, T value) this[
index
] { get; }

Methods

Consider

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