|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjhplot.math.Sorting
public class Sorting
Quick Sort algoritm.
Allows to sort a column quickly, Using a generic version of C.A.R Hoare's Quick Sort algorithm.
| Constructor Summary | |
|---|---|
Sorting(double[] array,
boolean copyArray)
Construct an ascending order. |
|
| Method Summary | |
|---|---|
int[] |
getIndex()
Get the ascending order of all lines. |
int |
getIndex(int i)
Get the ascending order of one line. |
static int[] |
invertIndex(int[] ind)
|
static void |
main(String[] args)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Sorting(double[] array,
boolean copyArray)
array - Array to sort.copyArray - Specify if the sort is made directly : true -> array is
modified (usefull for big arrays !), false -> array is copied
and not modified (more memory used).| Method Detail |
|---|
public static int[] invertIndex(int[] ind)
public int getIndex(int i)
i - Line number.
public int[] getIndex()
public static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||