5 #ifndef BPP_PHYL_PHYLOSTATISTICS_H
6 #define BPP_PHYL_PHYLOSTATISTICS_H
The phylogenetic node class.
Compute several quantities on a tree simulateously, optimizing the recursions on the tree.
size_t getNumberOfAncestors() const
const std::vector< double > & getNodeHeights() const
const std::vector< size_t > & getNodeDepths() const
void computeForSubtree_(const Node *node, double &height, size_t &depth)
const std::vector< size_t > & getNodeNumberOfSons() const
std::vector< int > nodeIds_
std::vector< double > nodeHeights_
size_t getNumberOfLeaves() const
const std::vector< int > & getNodeIds() const
void setTree(const Tree &tree)
Compute statistics for a given input tree.
size_t numberOfAncestors_
virtual ~PhyloStatistics()
PhyloStatistics * clone() const
std::vector< size_t > nodeDepths_
std::vector< size_t > nodeNumberOfSons_
std::vector< double > branchLengths_
const std::vector< double > & getBranchLengths() const
Interface for phylogenetic tree objects.
Defines the basic types of data flow nodes.