This is a C++ function, called from quartetTable, to fill in the quartet counts. From a list of topological distance matrices (1 for each gene tree) it determines all gene quartets. It is not intended to be used as a stand-alone function, and hence not fully documented. The faster looping in C++ over R gives substantial time improvements
quartetTallyCpp(dList, M, nt, Q, random, progressbar = FALSE)
a list of distance matrices
number of sets of 4 taxa
number of gene trees/distance matrices
matrix to fill out as table of quartet counts
if 0 compute for all sets of 4 taxa, otherwise for M random ones
if TRUE, display progress bar
quartetTable
, quartetTableParallel