coreComponents
Class GeneralUtils

java.lang.Object
  |
  +--coreComponents.GeneralUtils

public class GeneralUtils
extends java.lang.Object

Class for keeping lots of useful functions that I like a lot.

Version:
$Revision 1.00$
Author:
David Lindsay (davidl@cs.rhul.ac.uk)

Constructor Summary
GeneralUtils()
           
 
Method Summary
static int getRankOfAnIndexedDoubles(int chosenIndex, double[] doubleList)
          Gets the ranking of a particular index in an indexed list of doubles sorts the values from lowest to highest
static DoubleWithIndex[] sortIndexedDoubles(double[] doubleList)
          Sorts and indexed array of doubles returns array from lowest to highest
static DoubleWithIndex[] sortIndexedDoubles(DoubleWithIndex[] doubleList)
          Sorts and indexed array of doubles returns array from lowest to highest
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneralUtils

public GeneralUtils()
Method Detail

getRankOfAnIndexedDoubles

public static int getRankOfAnIndexedDoubles(int chosenIndex,
                                            double[] doubleList)
Gets the ranking of a particular index in an indexed list of doubles sorts the values from lowest to highest


sortIndexedDoubles

public static DoubleWithIndex[] sortIndexedDoubles(double[] doubleList)
Sorts and indexed array of doubles returns array from lowest to highest


sortIndexedDoubles

public static DoubleWithIndex[] sortIndexedDoubles(DoubleWithIndex[] doubleList)
Sorts and indexed array of doubles returns array from lowest to highest



Copyright (c) 2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London