org.ddogleg.sorting
Class QuickSortObj_F64
- java.lang.Object
-
- org.ddogleg.sorting.QuickSortObj_F64
-
public class QuickSortObj_F64 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 seems to often perform slower than Shell sort. A comment in Numerical recipes about unnecessary array checks makes me think this is slow because java always does a bounds check on arrays. This has slightly better performance than Arrays.sort(float[]). Not noticeable in most applications.
-
-
Constructor Summary
Constructors Constructor and Description QuickSortObj_F64()QuickSortObj_F64(int NSTACK, int M)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidsort(SortableParameter_F64[] arr, int length)voidsort(SortableParameter_F64[] arr, int length, int[] indexes)
-
-
-
Constructor Detail
-
QuickSortObj_F64
public QuickSortObj_F64()
-
QuickSortObj_F64
public QuickSortObj_F64(int NSTACK, int M)
-
-
Method Detail
-
sort
public void sort(SortableParameter_F64[] arr, int length)
-
sort
public void sort(SortableParameter_F64[] arr, int length, int[] indexes)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG