All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----sorts.Real_Sorts
This class permits one to perform sorts of real numbers.
This method attempts to perform an n*log(n) sort rather than an n*n sort.
public Real_Sorts()
public static void rsort(double x[],
double xsort[],
int origord[],
int n)
This method attempts to perform an n*log(n) sort rather than an n*n sort. It sorts doubles. It also keeps track of the original order of the x's.
Steve Verrill, 5/2/89. Translated to Java from FORTRAN on 6/7/96.
There are other, faster sorts that are available in Java. See, for example, http://www.cs.ubc.ca/spider/harrison/Java/sorting-demo.html
All Packages Class Hierarchy This Package Previous Next Index