Click or drag to resize
Accord.NET (logo)

SortInsertionTKeys, TValue Method (TKeys, TValue, Int32, Int32, FuncTKeys, TKeys, Int32, Boolean)

Insertion sort.

Namespace:  Accord
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public static int Insertion<TKeys, TValue>(
	TKeys[] keys,
	TValue[] items,
	int first,
	int last,
	Func<TKeys, TKeys, int> comparer,
	bool asc = true
)
Request Example View Source

Parameters

keys
Type: TKeys
items
Type: TValue
first
Type: SystemInt32
last
Type: SystemInt32
comparer
Type: SystemFuncTKeys, TKeys, Int32
asc (Optional)
Type: SystemBoolean

Type Parameters

TKeys
TValue

Return Value

Type: Int32
See Also