opale.mathtools
Class InsertionSort

java.lang.Object
  |
  +--opale.mathtools.Sort
        |
        +--opale.mathtools.InsertionSort

public final class InsertionSort
extends Sort

This class extends Sort and implements the Insertion sort.

Since:
Opale-Mathtools 0.11

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

InsertionSort

public InsertionSort()
Method Detail

sort

public final void sort(int n,
                       double[] tab)
Sorts an array tab into ascending numerical order by insertion sort.
Overrides:
sort in class Sort
Following copied from class: opale.mathtools.Sort
Parameters:
int - n, the size of the array.
double[] - tab, the array.