powered by
Compute the index of the pairwise comparison from the idx of each pop
Return the (0-indexed) index for the row associated to the pairwise comparison in the ordered flat list of all (npop*(npop-1))/2 pairwise stats
Integer giving the (0-indexed) index of the first pop
Integer giving the (0-indexed) index of the second pop
Integer giving the total number of indexes (i.e., number of pops)
If idx_pop2 < idx_pop1, indexes are reversed
#
Run the code above in your browser using DataLab