5 #ifndef BPP_PHYL_MODEL_CODON_ABSTRACTCODONDISTANCESUBSTITUTIONMODEL_H
6 #define BPP_PHYL_MODEL_CODON_ABSTRACTCODONDISTANCESUBSTITUTIONMODEL_H
71 std::shared_ptr<const AlphabetIndex2> pdist,
72 std::shared_ptr<const GeneticCode> pgencode,
73 const std::string& prefix,
74 bool paramSynRate =
false);
114 throw NullPointerException(
"AbstractCodonDistanceSubstitutionModel::frequencySet. No associated FrequencySet.");
122 void setFreq(std::map<int, double>& frequencies)
override {}
Abstract class for modelling of non-synonymous and synonymous substitution rates in codon models.
AbstractCodonDistanceSubstitutionModel & operator=(const AbstractCodonDistanceSubstitutionModel &model)
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...
AbstractCodonDistanceSubstitutionModel(const AbstractCodonDistanceSubstitutionModel &model)
const CodonFrequencySetInterface & codonFrequencySet() const override
std::shared_ptr< const GeneticCode > pgencode_
AbstractCodonDistanceSubstitutionModel(std::shared_ptr< const AlphabetIndex2 > pdist, std::shared_ptr< const GeneticCode > pgencode, const std::string &prefix, bool paramSynRate=false)
Build a new AbstractCodonDistanceSubstitutionModel object.
std::shared_ptr< const AlphabetIndex2 > pdistance_
void setFreq(std::map< int, double > &frequencies) override
virtual ~AbstractCodonDistanceSubstitutionModel()
AbstractCodonDistanceSubstitutionModel * clone() const override
bool hasCodonFrequencySet() const override
void fireParameterChanged(const ParameterList ¶meters) override
std::shared_ptr< const StateMapInterface > stateMap_
AbstractParameterAliasable & operator=(const AbstractParameterAliasable &ap)
Parametrize a set of state frequencies for codons.
Interface for codon models.
Defines the basic types of data flow nodes.