edu.ucla.stat.SOCR.util
Class QSortAlgorithm

java.lang.Object
  extended by edu.ucla.stat.SOCR.util.QSortAlgorithm
Direct Known Subclasses:
BootStrapSort, FriedmanTest, KruskalWallisTest, WilcoxonRankTest

public class QSortAlgorithm
extends java.lang.Object


Field Summary
static java.lang.String FLIGNER_KILLEEN_NORMAL
           
protected  boolean stopRequested
          When true stop sorting.
 
Constructor Summary
QSortAlgorithm()
           
 
Method Summary
static java.util.HashMap getCompleteMap()
           
static int getMaxNumberTies()
           
static java.util.HashMap getTieMap()
           
static int getTotalCount()
           
static boolean hasTie()
           
 void init()
          Initialize
static void main(java.lang.String[] args)
           
static double max(double[] a)
           
static double min(double[] a)
           
protected  void pause()
          Pause for a while.
protected  void pause(int H1)
          Pause for a while and mark item 1.
protected  void pause(int H1, int H2)
          Pause for a while and mark item 1 & 2.
static DataCase[] rankCombinedLists(DataCase[] input)
           
static DataCase[] rankCombinedLists(DataCase[][] groups, java.lang.String[] groupNames)
           
static DataCase[] rankCombinedLists(DataCase[] groupA, DataCase[] groupB)
           
static DataCase[] rankCombinedListsAssignQuantile(DataCase[][] groups, java.lang.String[] groupNames, java.lang.String distributionType)
           
static DataCase[] rankList(DataCase[] combo)
           
static DataCase[] rankListAssignQuantile(DataCase[] combo, java.lang.String distributionType)
           
 void setParent(SortItem p)
          Set the parent.
 void sort(DataCase[] a)
           
 void sort(double[] a)
           
 void stop()
          Stop sorting.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FLIGNER_KILLEEN_NORMAL

public static final java.lang.String FLIGNER_KILLEEN_NORMAL
See Also:
Constant Field Values

stopRequested

protected boolean stopRequested
When true stop sorting.

Constructor Detail

QSortAlgorithm

public QSortAlgorithm()
Method Detail

sort

public void sort(double[] a)
          throws java.lang.Exception
Throws:
java.lang.Exception

sort

public void sort(DataCase[] a)
          throws java.lang.Exception
Throws:
java.lang.Exception

min

public static double min(double[] a)
                  throws java.lang.Exception
Throws:
java.lang.Exception

max

public static double max(double[] a)
                  throws java.lang.Exception
Throws:
java.lang.Exception

rankCombinedLists

public static DataCase[] rankCombinedLists(DataCase[] input)

rankCombinedLists

public static DataCase[] rankCombinedLists(DataCase[][] groups,
                                           java.lang.String[] groupNames)

rankCombinedListsAssignQuantile

public static DataCase[] rankCombinedListsAssignQuantile(DataCase[][] groups,
                                                         java.lang.String[] groupNames,
                                                         java.lang.String distributionType)

rankCombinedLists

public static DataCase[] rankCombinedLists(DataCase[] groupA,
                                           DataCase[] groupB)

rankList

public static DataCase[] rankList(DataCase[] combo)

rankListAssignQuantile

public static DataCase[] rankListAssignQuantile(DataCase[] combo,
                                                java.lang.String distributionType)

getTieMap

public static java.util.HashMap getTieMap()

getCompleteMap

public static java.util.HashMap getCompleteMap()

hasTie

public static boolean hasTie()

getMaxNumberTies

public static int getMaxNumberTies()

getTotalCount

public static int getTotalCount()

main

public static void main(java.lang.String[] args)

setParent

public void setParent(SortItem p)
Set the parent.


pause

protected void pause()
              throws java.lang.Exception
Pause for a while.

Throws:
java.lang.Exception

pause

protected void pause(int H1)
              throws java.lang.Exception
Pause for a while and mark item 1.

Throws:
java.lang.Exception

pause

protected void pause(int H1,
                     int H2)
              throws java.lang.Exception
Pause for a while and mark item 1 & 2.

Throws:
java.lang.Exception

stop

public void stop()
Stop sorting.


init

public void init()
Initialize