⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 compute_rank.m

📁 一个计算多维定标(MDS)的matlab源代码
💻 M
字号:
function RST = compute_rank( ns , tt1 , tt2 );

[ s1 , index1 ] = sort( tt1 );
[ s2 , index2 ] = sort( tt2 );
  
[ order1 , indexx1 ] = sort( index1 );
[ order2 , indexx2 ] = sort( index2 );

untied1 = untiedata( ns , s1 );
untied2 = untiedata( ns , s2 );

newindexx1 = untied1( indexx1 );
newindexx2 = untied2( indexx2 );

diff = (newindexx1 - newindexx2).^2;
sumd = sum( diff );
RST = 1 - 6*sumd / (ns*(ns^2-1));

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -