5 #ifndef BPP_PHYL_MODEL_CODON_MG94_H
6 #define BPP_PHYL_MODEL_CODON_MG94_H
9 #include "../AbstractBiblioSubstitutionModel.h"
51 std::unique_ptr<CodonDistancePhaseFrequenciesSubstitutionModel>
pmodel_;
55 std::shared_ptr<const GeneticCode> gc,
56 std::unique_ptr<CodonFrequencySetInterface> codonFreqs);
67 std::string
getName()
const override {
return "MG94"; }
77 return pmodel_->codonFrequencySet();
82 return pmodel_->hasCodonFrequencySet();
85 void setFreq(std::map<int, double>& frequencies)
override
void setFreq(std::map< int, double > &frequ) override
Set equilibrium frequencies.
Parametrize a set of state frequencies for codons.
Interface for reversible codon models.
The Muse and Gaut (1994) substitution model for codons.
std::unique_ptr< CodonDistancePhaseFrequenciesSubstitutionModel > pmodel_
void setFreq(std::map< int, double > &frequencies) override
Set equilibrium frequencies.
MG94(std::shared_ptr< const GeneticCode > gc, std::unique_ptr< CodonFrequencySetInterface > codonFreqs)
std::shared_ptr< const GeneticCode > getGeneticCode() const override
const SubstitutionModelInterface & substitutionModel() const override
std::string getName() const override
Get the name of the model.
MG94 * clone() 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...
MG94 & operator=(const MG94 &mg94)
const CodonFrequencySetInterface & codonFrequencySet() const override
bool hasCodonFrequencySet() const override
SubstitutionModelInterface & substitutionModel_() override
Interface for all substitution models.
Defines the basic types of data flow nodes.