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 abstract bool TryLookupNearest(
T key,
Direction direction,
out int index
)
Public MustOverride Function TryLookupNearest (
key As T,
direction As Direction,
<OutAttribute> ByRef index As Integer
) As Boolean
public:
virtual bool TryLookupNearest(
T key,
Direction direction,
[OutAttribute] int% index
) abstract
abstract TryLookupNearest :
key : 'T *
direction : Direction *
index : int byref -> bool
Parameters
- key
- Type: T
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
.
Reference