5 #ifndef BPP_PHYL_LEGACY_LIKELIHOOD_HOMOGENEOUSTREELIKELIHOOD_H
6 #define BPP_PHYL_LEGACY_LIKELIHOOD_HOMOGENEOUSTREELIKELIHOOD_H
9 #include "../../Model/SubstitutionModel.h"
30 std::shared_ptr<const TransitionModelInterface>
getModelForSite(
int nodeId,
size_t siteIndex)
const
35 std::shared_ptr<TransitionModelInterface>
getModelForSite(
int nodeId,
size_t siteIndex)
43 virtual std::shared_ptr<const TransitionModelInterface>
getModel()
const = 0;
48 virtual std::shared_ptr<TransitionModelInterface>
getModel() = 0;
54 virtual void setModel(std::shared_ptr<TransitionModelInterface> model) = 0;
73 virtual std::shared_ptr<const SubstitutionModelInterface>
getSubstitutionModel(
int nodeId,
size_t siteIndex)
const = 0;
Specialization of the TreeLikelihood interface for the Homogeneous case.
virtual std::shared_ptr< const TransitionModelInterface > getModel() const =0
std::shared_ptr< TransitionModelInterface > getModelForSite(int nodeId, size_t siteIndex)
Get the substitution model associated to a given node and alignment column.
virtual std::shared_ptr< const SubstitutionModelInterface > getSubstitutionModel() const =0
Get a SubstitutionModel pointer toward the model associated to this instance, if possible.
HomogeneousTreeLikelihood * clone() const =0
std::shared_ptr< const TransitionModelInterface > getModelForSite(int nodeId, size_t siteIndex) const
Get the substitution model associated to a given node and alignment column.
virtual void setModel(std::shared_ptr< TransitionModelInterface > model)=0
virtual std::shared_ptr< TransitionModelInterface > getModel()=0
virtual std::shared_ptr< const SubstitutionModelInterface > getSubstitutionModel(int nodeId, size_t siteIndex) const =0
Get a SubstitutionModel pointer toward the model associated to this instance, if possible.
The TreeLikelihood interface.
Defines the basic types of data flow nodes.