|
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
)
Public Shared Function Insertion(Of TKeys, TValue) (
keys As TKeys(),
items As TValue(),
first As Integer,
last As Integer,
comparer As Func(Of TKeys, TKeys, Integer),
Optional asc As Boolean = true
) As Integer
Request Example
View SourceParameters
- 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:
Int32See Also