Interval 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 override bool TryLookupNearest(
Interval<T> key,
Direction direction,
out int index
)
Parameters
- key Interval<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.
Remarks
This method is not supported for interval indexes.
Exceptions
Not | Always thrown. |