blob: 957b04c71debf65e6f4e6033202f1469e5f8d392 (
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
32
|
\myprogram{{compute\_rho.py}}
{compute the Spearman's rank correlation coefficient $\rho$
between two rankings.} {$<$file1$>$ $<$file2$>$}
\mydescription{Compute the Spearman's rank correlation coefficient
$\rho$ 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 Spearman's rank correlation coefficient between
any generic pair of rankings.
N.B.: A C implementation of this program, with the same
interface is also available in the executable
file \texttt{compute\_rho}.}
\myreturn{The program prints on \texttt{stdout} the value of the
Spearman's rank correlation coefficient $\rho$ between the
two rankings provided as input. }
\myreference{\refcorrelations
\refgrowth
\refnonlinear
}
|