(1) average_hamming_distance/2 calculates the average hamming distance. use option -hd. (2) average_kendalls_tau/2 calculates the average kendall's tau distance. use option -kt. (3) -hd and -ht expect 2 arguments: your reordered indexes and the gold reordered indexes.