16 std::shared_ptr<const GeneticCode> pgencode,
17 const string& prefix) :
38 int epsilon =
pgencode_->codonAlphabet().getGCinCodon(sj)
39 -
pgencode_->codonAlphabet().getGCinCodon(si);
44 return pgencode_->areSynonymous(si, sj) ? 1.
AbstractCodonBGCSubstitutionModel(std::shared_ptr< const GeneticCode > pgencode, const std::string &prefix)
Build a new AbstractCodonBGCSubstitutionModel object.
std::shared_ptr< const StateMapInterface > stateMap_
std::shared_ptr< const GeneticCode > pgencode_
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
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.
ExtendedFloat exp(const ExtendedFloat &ef)