5 #ifndef BPP_PHYL_LEGACY_LIKELIHOOD_ABSTRACTTREELIKELIHOODDATA_H
6 #define BPP_PHYL_LEGACY_LIKELIHOOD_ABSTRACTTREELIKELIHOODDATA_H
57 std::shared_ptr<const TreeTemplate<Node>>
tree_;
102 std::shared_ptr< const TreeTemplate<Node>>
getTree()
const {
return tree_; }
Partial implementation of the TreeLikelihoodData interface.
AbstractTreeLikelihoodData & operator=(const AbstractTreeLikelihoodData &atd)
const std::vector< unsigned int > & getWeights() const
std::vector< size_t > rootPatternLinks_
Links between sites and patterns.
AbstractTreeLikelihoodData(std::shared_ptr< const TreeTemplate< Node >> tree)
std::shared_ptr< const Alphabet > alphabet_
std::vector< size_t > & getRootArrayPositions()
unsigned int getWeight(size_t pos) const
std::shared_ptr< const TreeTemplate< Node > > getTree() const
const std::vector< size_t > & getRootArrayPositions() const
AbstractTreeLikelihoodData(const AbstractTreeLikelihoodData &atd)
std::vector< unsigned int > rootWeights_
The frequency of each site.
std::shared_ptr< const TreeTemplate< Node > > tree_
size_t getRootArrayPosition(const size_t site) const
std::shared_ptr< const Alphabet > getAlphabet() const
virtual ~AbstractTreeLikelihoodData()
TreeLikelihood data structure.
The phylogenetic tree class.
Defines the basic types of data flow nodes.