40 #ifndef _PHYLOSTATISTICS_H_ 41 #define _PHYLOSTATISTICS_H_ 45 #include <Bpp/Clonable.h> 61 public virtual Clonable
79 #ifndef NO_VIRTUAL_COV 108 #endif //_PHYLOSTATISTICS_H_ const std::vector< double > & getNodeHeights() const
virtual ~PhyloStatistics()
Compute several quantities on a tree simulateously, optimizing the recursions on the tree...
std::vector< size_t > nodeNumberOfSons_
Interface for phylogenetic tree objects.
void setTree(const Tree &tree)
Compute statistics for a given input tree.
size_t getNumberOfAncestors() const
std::vector< double > branchLengths_
std::vector< size_t > nodeDepths_
size_t getNumberOfLeaves() const
The phylogenetic node class.
const std::vector< int > & getNodeIds() const
const std::vector< size_t > & getNodeDepths() const
std::vector< int > nodeIds_
const std::vector< size_t > & getNodeNumberOfSons() const
std::vector< double > nodeHeights_
const std::vector< double > & getBranchLengths() const
void computeForSubtree_(const Node *node, double &height, size_t &depth)
size_t numberOfAncestors_