Maths.MinimumSearch<T>

Maths.AbstractSearch<1>
public sealed class Maths.MinimumSearch<T> : Maths.AbstractSearch<T>
Utility class for performing near searches.
TType of object.

Constructors

MinimumSearch

#
Create a new search with custom setup.
public MinimumSearch(
(double lower, double upper)
limit,
Limit range. Value exceeding the range will not be considered.
initialBoundary,
Boundary at start of search.
T
initialValue
Instance value at start of search.
)

MinimumSearch

#
Create a new search with a limiting range.
public MinimumSearch(
(double lower, double upper)
limit
Limit boundary. Value exceeding the boundary will not be considered.
)

MinimumSearch

#
Create a new, blank search.
public MinimumSearch()

Properties

Boundary

Gets the boundary value associated with the current instance.
public double Boundary { get; }
inherited fromMaths.AbstractSearch<T>

HasInstance

Gets whether an object has been found.
public bool HasInstance { get; }
inherited fromMaths.AbstractSearch<T>

Instance

Gets the found instance.
public T Instance { get; }
inherited fromMaths.AbstractSearch<T>

Range

Gets the range within which values are considered.
public (double lower, double upper) Range { get; }
inherited fromMaths.AbstractSearch<T>

Methods

Consider

consider a new distance/value pair.
public bool Consider(
value,
Distance associated with value.
T
instance
Value associated with distance.
)
inherited fromMaths.AbstractSearch<T>
True if the considered value became the new minimum value.

Improves

#
Test for improvement.
protected override bool Improves(
a,
Value to check.
b
Value to check against.
)
True if a is considered to exceed b.