File Exchange

image thumbnail

Tiedrank_(X,dim)

version 1.3.0.0 (1.79 KB) by Daniel
Like MATLAB's tiedrank function, but works along dimension dim of ND-array.

2 Downloads

Updated 14 Jan 2012

View Version History

View License

r = tiedrank_(X,dim)

Parameters:
[X] is a multidimensional array.
[dim] specifies which dimension to perform ranking on.

Returns:
[r] ranked values of X along dimension dim. Where values are the same the mean rank is
given (e.g. [99 110 50 13 99] goes to [ 3.5 5 2 1 3.5] )

Code is fully vectorised.

-- DM, Jan 2012

Cite As

Daniel (2021). Tiedrank_(X,dim) (https://www.mathworks.com/matlabcentral/fileexchange/34560-tiedrank_-x-dim), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)

Anton Ekimenko

Liber Eleutherios

Very useful indeed! Thank you for that.

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories

Community Treasure Hunt

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

Start Hunting!