Interval Index<T>.Lookup Method
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
Overload List
Lookup( | Maps a sequence of keys to their position in the index. |
Lookup( | Gets the indexes of the intervals containing a set of values. |
Lookup( | Maps the specified key to its position in the index. |
Lookup( | Gets the index of the interval containing a value. |
Lookup(IList<T>)
Gets the indexes of the intervals containing a set of values.
public int[] Lookup(
IList<T> values
)
Parameters
Return Value
Int32[]An integer array containing for each element in values the zero-based index of the interval containing it.
Exceptions
Argument | values is null. |
Lookup(T)
Gets the index of the interval containing a value.
public int Lookup(
T value
)
Parameters
- value T
- The value to find.
Return Value
Int32The zero-based index of the interval containing value.