blob: e6e8589d9bfdad54a2e1fce35647d766824c32c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
\myprogram{{compute\_tau.py}}
{compute the Kendall's rank correlation coefficient $\tau_b$
between two rankings.} {$<$file1$>$ $<$file2$>$}
\mydescription{Compute the Kendall's rank correlation coefficient
$\tau_b$ between two rankings provided in the input
files \textit{file1} and \textit{file2}. Each input file
contains a list of lines, where the n-th line contains the
value of rank of the n-th node. For instance, \textit{file1}
and \textit{file2} might contain the ranks of nodes induced
by the degree sequences of two distinct layers of a
multiplex.
However, the program is pretty general and can be used to
compute the Kendall's rank correlation coefficient between
any generic pair of rankings.
N.B.: This implementation takes properly into account rank
ties.}
\myreturn{The program prints on \texttt{stdout} the value of the
Kendall's rank correlation coefficient $\tau_b$ between the
two rankings provided as input. }
\myreference{\refcorrelations
\refgrowth
\refnonlinear
}
|