Maps a sequence of keys to their position in the index.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public virtual int[] Lookup(
IEnumerable<T> values
)
Public Overridable Function Lookup (
values As IEnumerable(Of T)
) As Integer()
public:
virtual array<int>^ Lookup(
IEnumerable<T>^ values
)
abstract Lookup :
values : IEnumerable<'T> -> int[]
override Lookup :
values : IEnumerable<'T> -> int[]
Parameters
- values
- Type: System.Collections.GenericIEnumerableT
A sequence of keys to locate in the index.
Return Value
Type:
Int32An array containing the mapped position of the elements of
values.
If the key was found in the index, then the mapped position is the zero-based
position of the first occurance of the value in the index;
otherwise the mapped position is -1.
Reference