|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_TREE_COMMON_TREE_DISTANCES_H_
2 #define GENESIS_TREE_COMMON_TREE_DISTANCES_H_
68 TreeNode
const* node =
nullptr
77 TreeEdge
const* edge =
nullptr
106 utils::Matrix<double>
const& node_branch_length_distance_mat
118 utils::Matrix<double>
const& node_branch_length_distance_mat
124 #endif // include guard
std::vector< std::pair< TreeNode const *, double > > furthest_leaf_distance_vector(Tree const &tree)
Opposite of closest_leaf_distance_vector().
std::vector< double > node_branch_length_distance_vector(Tree const &tree, TreeNode const *node)
Return a vector containing the distance of all nodes with respect to the given start node,...
double deepest_distance(Tree const &tree)
Return the longest distance from any point in the tree (on the edges) to any leaf.
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
utils::Matrix< double > node_branch_length_distance_matrix(Tree const &tree)
Return a distance matrix containing pairwise distances between all Nodes, using the branch_length of ...
utils::Matrix< double > edge_branch_length_distance_matrix(Tree const &tree)
std::vector< std::pair< TreeNode const *, double > > closest_leaf_distance_vector(Tree const &tree)
Return a vector containing the closest leaf node for each node, using the branch_length as distance m...
std::vector< double > edge_branch_length_distance_vector(Tree const &tree, TreeEdge const *edge)