5 #ifndef BPP_PHYL_MODEL_CODON_ABSTRACTCODONFREQUENCIESSUBSTITUTIONMODEL_H
6 #define BPP_PHYL_MODEL_CODON_ABSTRACTCODONFREQUENCIESSUBSTITUTIONMODEL_H
9 #include "../FrequencySet/CodonFrequencySet.h"
34 std::unique_ptr<CodonFrequencySetInterface>
pfreqset_;
46 std::unique_ptr<CodonFrequencySetInterface> pfreq,
47 const std::string& prefix);
72 void setFreq(std::map<int, double>& frequencies)
override;
Abstract Class for substitution models on codons parametrized by frequencies.
const FrequencySetInterface & frequencySet() const
const CodonFrequencySetInterface & codonFrequencySet() const override
void setFreq(std::map< int, double > &frequencies) override
void fireParameterChanged(const ParameterList ¶meters) override
AbstractCodonFrequenciesSubstitutionModel & operator=(const AbstractCodonFrequenciesSubstitutionModel &model)
double getCodonsMulRate(size_t, size_t) const override
Returns the multiplicative rate specific to two codons specified by their number. The respective gene...
AbstractCodonFrequenciesSubstitutionModel(std::unique_ptr< CodonFrequencySetInterface > pfreq, const std::string &prefix)
Build a AbstractCodonFrequenciesSubstitutionModel instance.
bool hasCodonFrequencySet() const override
AbstractCodonFrequenciesSubstitutionModel * clone() const override
std::unique_ptr< CodonFrequencySetInterface > pfreqset_
void setNamespace(const std::string &prefix) override
virtual ~AbstractCodonFrequenciesSubstitutionModel()
AbstractCodonFrequenciesSubstitutionModel(const AbstractCodonFrequenciesSubstitutionModel &model)
AbstractParameterAliasable & operator=(const AbstractParameterAliasable &ap)
void setNamespace(const std::string &prefix)
Parametrize a set of state frequencies for codons.
Interface for codon models.
Parametrize a set of state frequencies.
Defines the basic types of data flow nodes.