Maths.AbstractSearch<T>

References
public abstract class Maths.AbstractSearch<T>
Utility class for performing extreme searches.
TType of object.

Constructors

AbstractSearch

#
Create a new near search with initial constraints.
protected AbstractSearch(
(double d0, double d1)
range,
Range.
boundary,
Initial boundary condition.
T
instance
Initial value instance.
)

AbstractSearch

#
Create a new near search without an initial instance.
protected AbstractSearch(
(double d0, double d1)
range,
Range.
boundary
Initial boundary condition.
)

Properties

Boundary

#
Gets the boundary value associated with the current instance.
public double Boundary { get; }

HasInstance

#
Gets whether an object has been found.
public bool HasInstance { get; }

Instance

#
Gets the found instance.
public T Instance { get; }

Range

#
Gets the range within which values are considered.
public (double lower, double upper) Range { get; }

Methods

Consider

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

Improves

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

Convertors

OperationResultDescription
implicitMaths.AbstractSearch<T>TConvert the search to the instance.