|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.statcato.utils.OrderingFunctions
public class OrderingFunctions
Functions for ordering column cells.
| Constructor Summary | |
|---|---|
OrderingFunctions()
|
|
| Method Summary | |
|---|---|
static double[] |
rank(java.util.Vector<DataValue> data)
Returns the ranks of the given DataValue objects. |
static java.util.Vector<java.lang.Integer> |
rankColumnVector(java.util.Vector<Cell> vec,
boolean ascending)
Given a vector of Cells and the sort order, return a vector of Integers that are the ranks of the Cells. |
static double[] |
rankDoubleVector(java.util.Vector<java.lang.Double> data)
Returns the ranks of the given DataValue objects. |
static java.util.Vector<Cell> |
sortColumnVector(java.util.Vector<Cell> vec,
java.util.Vector<Cell> byVec,
boolean ascending)
Sorts a vector of Cell based on another vector of Cell in the given order. |
static java.util.Vector<java.util.Vector<Cell>> |
sortVectors(java.util.Vector<java.util.Vector<Cell>> vecs,
java.util.Vector<java.lang.Boolean> orders)
Sorts a set of vectors in place, from the last vector in the set to the first. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OrderingFunctions()
| Method Detail |
|---|
public static java.util.Vector<java.lang.Integer> rankColumnVector(java.util.Vector<Cell> vec,
boolean ascending)
vec - vector of Cell to be rankedascending - sort order
public static java.util.Vector<Cell> sortColumnVector(java.util.Vector<Cell> vec,
java.util.Vector<Cell> byVec,
boolean ascending)
vec - vector to be sortedbyVec - vector to sort byascending - sort order
public static java.util.Vector<java.util.Vector<Cell>> sortVectors(java.util.Vector<java.util.Vector<Cell>> vecs,
java.util.Vector<java.lang.Boolean> orders)
vecs - vector of vectors of cellsorders - vector of boolean values indicating the sort orders.
Must have the same length as vec.
public static double[] rank(java.util.Vector<DataValue> data)
data - vector of DataValue objects
public static double[] rankDoubleVector(java.util.Vector<java.lang.Double> data)
data - vector of DataValue objects
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||