@ Reference ( authors = "F. J. Rohlf" , title = "Methods of comparing classifications" , // booktitle = "Annual Review of Ecology and Systematics" , // url = "https://doi.org/10.1146/annurev.es.05.110174.000533" , // bibkey = "doi:10.1146/annurev.es.05.110174.000533" ) public double computeTau ( long c , long d , double m , long wd , long bd ) { double tie = ( wd * ( wd - 1 ) + bd * ( bd - 1 ) ) >>> 1 ; return ( c - d ) / FastMath . sqrt ( ( m - tie ) * m ) ; // return (4. * c - m) / m; }
Compute the Tau correlation measure