R/TreeAnalyses.R
Dispersion.RdComputes within- and between-sample tree distance summaries, including
nearest-neighbour distances, mean minimum spanning tree edge length, median
distances, and silhouette width, for a distance matrix computed by
TreeDistances.
Dispersion(d)A distance matrix, typically the output of
TreeDistances.
'Dispersion()' returns a list with elements:
treePairs: a data frame of pairwise distances and comparison type
("1 vs 1", "1 vs 2", or "2 vs 2");
spread: a matrix summarising mean nearest-neighbour and MST edge
lengths, and median distances per run;
mdmd: the median-to-median distance between the two runs;
sil: the average silhouette width.
Other tree-comparisons:
PrecisionIncrease(),
TreeDistances(),
TreeLengths()