Tries to find the key nearest to the specified value in the index.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public override bool TryLookupNearest(
Interval<T> key,
Direction direction,
out int index
)
Public Overrides Function TryLookupNearest (
key As Interval(Of T),
direction As Direction,
<OutAttribute> ByRef index As Integer
) As Boolean
public:
virtual bool TryLookupNearest(
Interval<T> key,
Direction direction,
[OutAttribute] int% index
) override
abstract TryLookupNearest :
key : Interval<'T> *
direction : Direction *
index : int byref -> bool
override TryLookupNearest :
key : Interval<'T> *
direction : Direction *
index : int byref -> bool
Parameters
- key
- Type: Extreme.MathematicsIntervalT
The key to locate. - direction
- Type: Extreme.DataAnalysisDirection
The direction to look for the key if an exact match is not found. - index
- Type: SystemInt32
On return, if key was found, the position
of key in the index; otherwise -1.
Return Value
Type:
Boolean if
key was found in the index;
otherwise
.
This method is not supported for interval indexes.
Reference