Index<T>.JoinNearest Method

Returns the index that results from joining each key in an index to the nearest key in this index.

Definition

Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
C#
public Index<T> JoinNearest(
	Index<T> right,
	Direction direction,
	out int[]?? rightIndexes
)

Parameters

right  Index<T>
The second index.
direction  Direction
The direction to look for the key if an exact match is not found.
rightIndexes  Int32[]
On return, an array of indexes of the elements of right in the new index.

Return Value

Index<T>
The joined index.

See Also