5 #ifndef BPP_PHYL_MODEL_ABSTRACTBIBLIOSUBSTITUTIONMODEL_H
6 #define BPP_PHYL_MODEL_ABSTRACTBIBLIOSUBSTITUTIONMODEL_H
68 void setFreq(std::map<int, double>& frequ)
override;
91 if (parameters.
size() != 1)
virtual ~AbstractBiblioSubstitutionModel()
void updateMatrices_() override
AbstractBiblioSubstitutionModel(const std::string &prefix)
AbstractBiblioSubstitutionModel & operator=(const AbstractBiblioSubstitutionModel &model)
AbstractBiblioSubstitutionModel(const AbstractBiblioSubstitutionModel &model)
Partial implementation of the SubstitutionModel interface for models that are set for matching the bi...
std::map< std::string, std::string > mapParNamesFromPmodel_
Tools to make the link between the Parameters of the object and those of pmixmodel_.
void setFreq(std::map< int, double > &frequ) override
Set equilibrium frequencies.
virtual ~AbstractBiblioTransitionModel()
AbstractBiblioTransitionModel(const std::string &prefix)
ParameterList lParPmodel_
virtual void updateMatrices_()
std::string getPmodelParName(const std::string &name) const
get the name of a parameter in the submodel from its apparent name
void addRateParameter() override
Methods to supersede TransitionModel methods.
AbstractBiblioTransitionModel & operator=(const AbstractBiblioTransitionModel &model)
virtual void fireParameterChanged(const ParameterList ¶meters) override
Methods to supersede AbstractTransitionModel methods.
void setNamespace(const std::string &name) override
void setFreqFromData(const SequenceDataInterface &data, double pseudoCount=0) override
Set equilibrium frequencies equal to the frequencies estimated from the data.
std::string getParNameFromPmodel(const std::string &name) const
get the name of a parameter from its name in a submodel
std::string getNamespace() const override
const BranchModelInterface & model() const override
BranchModelInterface & model_()
virtual void setRate(double rate)=0
Set the rate of the model (must be positive).
virtual bool hasParameter(const std::string &name) const
virtual double getParameterValue(const std::string &name) const
Defines the basic types of data flow nodes.