Maths.MaximumSearch<T>

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

Constructors

MaximumSearch

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

MaximumSearch

#
Create a new search with a limiting boundary.
public MaximumSearch(
limit
Limit boundary. Value exceeding the boundary will not be considered.
)

MaximumSearch

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

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.