Documentation of 'org.ddogleg.sorting.StraightInsertionSort' Java class
StraightInsertionSort
org.ddogleg.sorting

Class StraightInsertionSort



  • public class StraightInsertionSort
    extends java.lang.Object
    An implementation of the straight insert sort algorithm. This is a O(N^2) algorithm and this implemenation originally came from NUmerical Recipes Third Edition. page 420. No additional data structures need to be declared. Elements are swapped in the list Only recommended for less than 20 elements
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void sort(double[] data)
      Sorts data into ascending order
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StraightInsertionSort

        public StraightInsertionSort()
    • Method Detail

      • sort

        public static void sort(double[] data)
        Sorts data into ascending order

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.