ranker(data)

RANKER returns ranked position of DATA matrix, with the same line-row structure.

Sie verfolgen jetzt diese Einreichung

Anmerkung des Herausgebers: 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

Zitieren als

R P (2026). ranker(data) (https://de.mathworks.com/matlabcentral/fileexchange/56244-ranker-data), MATLAB Central File Exchange. Abgerufen .

Kategorien

Mehr zu Data Preprocessing finden Sie in Help Center und MATLAB Answers

Allgemeine Informationen

Kompatibilität der MATLAB-Version

  • Kompatibel mit allen Versionen

Plattform-Kompatibilität

  • Windows
  • macOS
  • Linux
Version Veröffentlicht Versionshinweise Action
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