IntervalIndex<T>.Lookup Method

Definition

Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

Lookup(IEnumerable<T>) Maps a sequence of keys to their position in the index.
Lookup(IList<T>) Gets the indexes of the intervals containing a set of values.
Lookup(T) Maps the specified key to its position in the index.
Lookup(T) Gets the index of the interval containing a value.

IntervalIndex<T>.Lookup(IList<T>)

Gets the indexes of the intervals containing a set of values.
C#
public int[] Lookup(
	IList<T> values
)

Parameters

values  IList<T>
A Double array.

Return Value

Int32[]
An integer array containing for each element in values the zero-based index of the interval containing it.

Exceptions

ArgumentNullExceptionvalues is null.

IntervalIndex<T>.Lookup(T)

Gets the index of the interval containing a value.
C#
public int Lookup(
	T value
)

Parameters

value  T
The value to find.

Return Value

Int32
The zero-based index of the interval containing value.

See Also