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