16 std::shared_ptr<const GeneticCode> pgencode,
18 const vector<uint>& assign) :
27 throw BadSizeException(
"AbstractCodonClusterAASubstitutionModel::AbstractCodonClusterAASubstitutionModel: assign_",
assign_.size(), 20);
43 return pgencode_->areSynonymous(si, sj) ? 1 :
void fireParameterChanged(const ParameterList ¶meters) override
std::shared_ptr< const GeneticCode > pgencode_
std::shared_ptr< const StateMapInterface > stateMap_
std::vector< uint > assign_
AbstractCodonClusterAASubstitutionModel(std::shared_ptr< const GeneticCode > pgencode, const std::string &prefix, const std::vector< uint > &assign={1, 2, 3, 3, 3, 2, 2, 1, 2, 4, 4, 2, 4, 4, 1, 3, 3, 2, 2, 1})
Build a new AbstractCodonClusterAASubstitutionModel object.
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 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.