|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--opale.mathtools.Sort
|
+--opale.mathtools.InsertionSort
This class extends Sort and implements the Insertion sort.
| Constructor Summary | |
InsertionSort()
|
|
| Method Summary | |
void |
sort(int n,
double[] tab)
Sorts an array tab into ascending numerical order by insertion sort. |
| Methods inherited from class opale.mathtools.Sort |
getMax, getMin |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public InsertionSort()
| Method Detail |
public final void sort(int n,
double[] tab)
sort in class Sortopale.mathtools.Sortint - n, the size of the array.double[] - tab, the array.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||