5 #ifndef BPP_PHYL_MODEL_CODON_ABSTRACTCODONCPGSUBSTITUTIONMODEL_H
6 #define BPP_PHYL_MODEL_CODON_ABSTRACTCODONCPGSUBSTITUTIONMODEL_H
45 std::shared_ptr<const CodonAlphabet> alphabet,
46 const std::string& prefix);
77 throw NullPointerException(
"AbstractCodonCpGSubstitutionModel::frequencySet. No associated FrequencySet.");
85 void setFreq(std::map<int, double>& frequencies)
override {}
Abstract class for modelling of CpG -> CpA or TpG (symmetric) hypermutability substitution rate insid...
std::shared_ptr< const StateMapInterface > stateMap_
virtual ~AbstractCodonCpGSubstitutionModel()
const CodonFrequencySetInterface & codonFrequencySet() const override
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...
bool hasCodonFrequencySet() const override
void setFreq(std::map< int, double > &frequencies) override
AbstractCodonCpGSubstitutionModel & operator=(const AbstractCodonCpGSubstitutionModel &model)
AbstractCodonCpGSubstitutionModel(const AbstractCodonCpGSubstitutionModel &model)
AbstractCodonCpGSubstitutionModel * clone() const override
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.
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.