public class ArraySortTools
extends java.lang.Object
Constructor and Description |
---|
ArraySortTools() |
Modifier and Type | Method and Description |
---|---|
static int[] |
getIndexesOfSortedArray(double[] vals)
This function returns indexes such that they point to increasing elements
This function is based on the stackoverflow question
https://stackoverflow.com/questions/4859261/get-the-indices-of-an-array-after-sorting
see license section at the beginning of the file
|
public static int[] getIndexesOfSortedArray(double[] vals)
vals
- Values for which the ordering indices should be obtained