Compute the set of pairwise dissimilarities across all observations in a tree. Each dissimilarity measures the extent to which observations are "far apart" in the tree: the dissimilarity is 0 if the pair land in the same leaf, 1 if they land on leaves that have only the root as common ancestors, and otherwise something intermediate.
d3.dist(mytree, return.pd = FALSE)
Output from "tree"
If TRUE return the matrix of pairwise distances among leaves. Useful for debugging. Default FALSE.
Item of class "dist" giving inter-point distances.
Two observations have distance 0 if they fall in the same leaf; otherwise, the distance measures the ratio of the deviance of a tree trimmed so that they do fall in the same leaf to the deviance of the original tree.