Description Usage Arguments Value
This function computes the ranks of a vector of distance values.
The resulting array will contain normalized ranks in [0, 1]
.
NA
distances are allowed and will receive ranks > 1
. If the
smallest non-NA
distance in X
is 0
, all such distances
will receive rank 0
. The largest non-NA
distance in X
will receive rank 1
. If the smallest non-NA
distance in
X
is larger than zero, it will be assigned a value in (0,1)
,
namely its raw rank divided by the maximum rank.
1 | rank.dist(X, na.value = 2)
|
X |
the array of distance values |
na.value |
the value to be used for NA distances. since all "normal"
distances will be normalized into |
an array with normalized distance ranks
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.