16 std::shared_ptr<const CodonAlphabet> alphabet,
17 const std::string& prefix) :
34 return ((si % 16 == 7 && (si - sj == 2 || sj - si == 8)) || ((si - 1) / 4 == 6 && (si - sj == 8 || (sj - si == 32)))) ?
rho_ : 1;
std::shared_ptr< const StateMapInterface > stateMap_
double getCodonsMulRate(size_t i, size_t j) const override
Returns the multiplicative rate specific to two codons specified by their number. The respective gene...
void fireParameterChanged(const ParameterList ¶meters) override
AbstractCodonCpGSubstitutionModel(std::shared_ptr< const CodonAlphabet > alphabet, const std::string &prefix)
Build a new AbstractCodonCpGSubstitutionModel object from a pointer to NucleotideSubstitutionModel.
void addParameter_(Parameter *parameter)
double getParameterValue(const std::string &name) const override
This class implements a state map where all resolved states are modeled.
Defines the basic types of data flow nodes.