Up: Component summary
Component
MatrixRank
Computes ranks of values in a matrix. Ranks are computed independently
for each column. The rank is a value between 0 and 1.
The lowest value in a given column group gets rank 0/(n-1)=0, the
next gets 1/(n-1) and the highest value gets rank (n-1)/(n-1) = 1.
Here, n is the number of cells in the current column having a
non-missing value. Missing values (NA) are excluded from rank
computation.
Inputs
Name |
Type |
Mandatory |
Description |
in |
Matrix |
Mandatory |
Input matrix. |
Outputs
Name |
Type |
Description |
out |
Matrix |
Ranks of the input matrix as values between 0 and 1.
The number and names of rows matches the input matrix.
The columns are given with the columns parameter. The result
contains a missing value (NA) in those places where the
input also contains NA. |
Parameters
Name |
Type |
Default |
Description |
columns |
string |
"*"
|
Columns in matrix that are included in the output. The special
value * includes all columns. |
Test cases
Test case |
Parameters▼ |
IN in |
OUT out |
case1 |
(missing) |
in |
out |
Generated 2019-02-08 07:42:18 by Anduril 2.0.0