Interval Index<T>.Try Lookup Nearest Method
Tries to find the key nearest to the specified value in the index.
Definition
Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
true if key was found in the index; otherwise false.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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. |