|
SortInsertionTKey, TValue Method (TKey, TValue, FuncTKey, TKey, Int32, Boolean)
|
Insertion sort.
Namespace:
Accord
Assembly:
Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax public static int Insertion<TKey, TValue>(
TKey[] keys,
TValue[] items,
Func<TKey, TKey, int> comparer,
bool asc = true
)
Public Shared Function Insertion(Of TKey, TValue) (
keys As TKey(),
items As TValue(),
comparer As Func(Of TKey, TKey, Integer),
Optional asc As Boolean = true
) As Integer
Request Example
View SourceParameters
- keys
- Type: TKey
- items
- Type: TValue
- comparer
- Type: SystemFuncTKey, TKey, Int32
- asc (Optional)
- Type: SystemBoolean
Type Parameters
- TKey
- TValue
Return Value
Type:
Int32See Also