org.ddogleg.sorting
Class QuickSortComparator<T>
- java.lang.Object
-
- org.ddogleg.sorting.QuickSortComparator<T>
-
public class QuickSortComparator<T> extends java.lang.ObjectAn 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
Constructors Constructor and Description QuickSortComparator(java.util.Comparator<T> comparator)QuickSortComparator(int NSTACK, int M, java.util.Comparator<T> comparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidsort(T[] arr, int length)voidsort(T[] arr, int length, int[] indexes)
-
DataMelt 3.0 © DataMelt by jWork.ORG