Package org.ddogleg.sorting
Class QuickSortComparator<T>
java.lang.Object
org.ddogleg.sorting.QuickSortComparator<T>
An implementation of the quick sort algorithm from Numerical Recipes Third Edition
that is specified for arrays of floats.
A small amount of memory is declared for this sorting algorithm.
This implementation of QuickSort allows you to use a Comparator. Useful when you want to ensure that no
extra memory is declared each time you sort. This is possible when using built in methods.
-
Constructor Summary
ConstructorDescriptionQuickSortComparator
(int NSTACK, int M, Comparator<T> comparator) QuickSortComparator
(Comparator<T> comparator) -
Method Summary
-
Constructor Details
-
QuickSortComparator
-
QuickSortComparator
-
-
Method Details
-
sort
-
sort
-
sort
-