Skip to content

Commit

Permalink
Update src/rankcorr.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Milan Bouchet-Valat <[email protected]>
  • Loading branch information
PGS62 and nalimilan authored Feb 13, 2024
1 parent 9ce176f commit 0bf9154
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/rankcorr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ end
"""
tiedrank_nan(X::AbstractMatrix)
Replace each column of `X` by its tied rank, unless the column contains NaN in which case
set all elements of the column to NaN.
Return a matrix with of same dimensions as `X` whose entries indicate the tied rank
of the corresponding entry in `X` relative to its column.
If the column contains `NaN`, set all elements of the column to `NaN`.
"""
function tiedrank_nan(X::AbstractMatrix{<:Real})
Z = similar(X, Float64)
Expand Down

0 comments on commit 0bf9154

Please sign in to comment.