Index<T>.Try Lookup Nearest 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.4
C#
true if key was found in the index; otherwise false.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
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
Booleantrue if key was found in the index; otherwise false.