ranker(data)

バージョン 1.1.0.0 (791 Bytes) 作成者: R P
RANKER returns ranked position of DATA matrix, with the same line-row structure.
ダウンロード: 42
更新 2016/3/30

ライセンスの表示

編集メモ: This file was selected as MATLAB Central Pick of the Week

Syntax: [ranked_data]=ranker(data);

Example: data=rand(3,2)
[ranked_data]=ranker(data)
Obs:
x=[1;10;100]
y=[4;3;70]
>> corr(x,y,'type','spearman')
ans =
0.5000

>> corr(ranker(x),ranker(y),'type','pearson')
ans =
0.5000

引用

R P (2024). ranker(data) (https://www.mathworks.com/matlabcentral/fileexchange/56244-ranker-data), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R13
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersPreprocessing Data についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート
1.1.0.0

Now it works for repeated data points. Check ranker([1 2 3 3 3 3 4])

1.0.0.0

image update