Tries to find the key nearest to the specified value in the index.
Namespace: Extreme.DataAnalysisAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.16312.0)
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
.
Numerical Libraries
Supported in: 6.0
Reference