5 #ifndef BPP_PHYL_MODEL_NUCLEOTIDE_YPR_H
6 #define BPP_PHYL_MODEL_NUCLEOTIDE_YPR_H
10 #include "../AbstractSubstitutionModel.h"
90 std::unique_ptr<NucleotideSubstitutionModelInterface>
pmodel_;
101 std::shared_ptr<const RNY>,
102 std::unique_ptr<NucleotideSubstitutionModelInterface>
const,
103 const std::string& prefix);
109 AbstractParameterAliasable::operator=(ypr);
110 AbstractSubstitutionModel::operator=(ypr);
112 pmodel_.reset(ypr.
pmodel_->clone());
120 void updateMatrices_(
double,
double,
double,
double,
121 double,
double,
double,
double);
123 virtual void updateMatrices_()
override;
127 return nestedPrefix_;
137 virtual void setNamespace(
const std::string&)
override;
141 AbstractSubstitutionModel::fireParameterChanged(parameters);
142 pmodel_->matchParametersValues(parameters);
180 std::shared_ptr<const RNY> alph,
181 std::unique_ptr<NucleotideSubstitutionModelInterface> pm,
182 double CgT = 0.,
double TgC = 0.,
183 double CaT = 0.,
double TaC = 0.);
191 std::string getName()
const override;
194 void updateMatrices_()
override;
222 std::shared_ptr<const RNY> alph,
223 std::unique_ptr<NucleotideSubstitutionModelInterface> pm,
224 double CgT = 0.,
double cGA = 0.,
225 double TgC = 0.,
double tGA = 0.,
226 double CaT = 0.,
double cAG = 0.,
227 double TaC = 0.,
double tAG = 0.);
235 std::string getName()
const override;
238 void updateMatrices_()
override;
Specialisation interface for nucleotide substitution model.
Interface for all substitution models.
YpR_Gen * clone() const override
YpR_Sym * clone() const override
std::string nestedPrefix_
size_t getNumberOfStates() const override
Get the number of states.
const NucleotideSubstitutionModelInterface & nestedModel() const
void fireParameterChanged(const ParameterList ¶meters) override
Tells the model that a parameter value has changed.
std::unique_ptr< NucleotideSubstitutionModelInterface > pmodel_
string getNestedPrefix() const
YpR & operator=(const YpR &ypr)
Defines the basic types of data flow nodes.