Index<T>.TryLookupNearest Method

Tries to find the key nearest to the specified value in the index.

Definition

Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
public abstract bool TryLookupNearest(
	T key,
	Direction direction,
	out int index
)

Parameters

key  T
The key to locate.
direction  Direction
The direction to look for the key if an exact match is not found.
index  Int32
On return, if key was found, the position of key in the index; otherwise -1.

Return Value

Boolean
true if key was found in the index; otherwise false.

See Also