A tree is converted to a vector of pairwise distances between leaves.
Distance between leaves is defined as the cophenetic distance between them.
Normalization is applied so that the maximum distance in the vector output is 1.
Usage
tree.to.vector(tree, normalization = TRUE)
Value
vector of pairwise distances in R^(m choose 2), where m is the number of leaves