|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.at.utils.math.statistics.RankOrder
public class RankOrder
RankOrder -- Convert columns of an (n x m) matrix to rank order values.
Constructor Summary | |
---|---|
protected |
RankOrder()
Don't allow instantiation, but allow subclassing. |
Method Summary | |
---|---|
static double[] |
getRankOrders(double[] values)
Compute rank order for array of doubles. |
static void |
rankOrder(Matrix matrix)
Rank order columns of a matrix. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected RankOrder()
Method Detail |
---|
public static void rankOrder(Matrix matrix)
matrix
- The n x m data matrix whose columns are
to be rank ordered.
On return, the columns of the input matrix are independently converted to rank order.
public static double[] getRankOrders(double[] values)
values
- Values to be rank ordered.
Tied ranks are converted to mid-rank values. This allow for proper computation of various rank-based statistics, e.g., Spearman's correlation coefficient.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |