|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_PLACEMENT_FUNCTION_DISTANCES_H_
2 #define GENESIS_PLACEMENT_FUNCTION_DISTANCES_H_
61 class PqueryPlacement;
64 class PlacementEdgeData;
65 class PlacementNodeData;
129 PqueryPlain
const& pquery_a,
130 PqueryPlain
const& pquery_b,
131 utils::Matrix<double>
const& node_distances,
132 bool with_pendant_length =
false
143 Pquery
const& pquery_a,
144 Pquery
const& pquery_b,
145 utils::Matrix<double>
const& node_distances,
146 bool with_pendant_length =
false
156 PqueryPlacement
const& place_a,
157 PqueryPlacement
const& place_b,
158 utils::Matrix<double>
const& node_distances
169 Pquery
const& pquery_a,
170 Pquery
const& pquery_b,
171 utils::Matrix<size_t>
const& node_path_lengths
184 PqueryPlacement
const& place_a,
185 PqueryPlacement
const& place_b,
186 utils::Matrix<size_t>
const& node_path_lengths
201 Pquery
const& pquery,
202 tree::TreeNode
const& node,
203 utils::Matrix<double>
const& node_distances
213 PqueryPlacement
const& placement,
214 tree::TreeNode
const& node,
215 utils::Matrix<double>
const& node_distances
250 Pquery
const& pquery,
251 tree::TreeEdge
const& edge,
252 utils::Matrix<size_t>
const& edge_path_lengths
262 PqueryPlacement
const& placement,
263 tree::TreeEdge
const& edge,
264 utils::Matrix<size_t>
const& edge_path_lengths
270 #endif // include guard
double pquery_distance(PqueryPlain const &pquery_a, PqueryPlain const &pquery_b, utils::Matrix< double > const &node_distances, bool with_pendant_length)
Calculate the weighted distance between two plain pqueries. It is mainly a helper method for distance...
Class for representing phylogenetic trees.
double placement_distance(PqueryPlacement const &place_a, PqueryPlacement const &place_b, utils::Matrix< double > const &node_distances)
Calculate the distance between two PqueryPlacements, using their position on the tree::TreeEdges,...
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
double pquery_path_length_distance(Pquery const &pquery_a, Pquery const &pquery_b, utils::Matrix< size_t > const &node_path_lengths)
Calculate the weighted discrete distance between two Pqueries, measured as the pairwise distance in n...
size_t placement_path_length_distance(PqueryPlacement const &place_a, PqueryPlacement const &place_b, utils::Matrix< size_t > const &node_path_lengths)