5 #ifndef BPP_PHYL_MODEL_CODON_CODONDISTANCEPHASEFREQUENCIESSUBSTITUTIONMODEL_H
6 #define BPP_PHYL_MODEL_CODON_CODONDISTANCEPHASEFREQUENCIESSUBSTITUTIONMODEL_H
61 std::shared_ptr<const GeneticCode> gCode,
62 std::unique_ptr<NucleotideSubstitutionModelInterface> pmod,
63 std::unique_ptr<CodonFrequencySetInterface> pfreq,
64 std::shared_ptr<const AlphabetIndex2> pdist =
nullptr);
80 std::shared_ptr<const GeneticCode> gCode,
81 std::unique_ptr<NucleotideSubstitutionModelInterface> pmod1,
82 std::unique_ptr<NucleotideSubstitutionModelInterface> pmod2,
83 std::unique_ptr<NucleotideSubstitutionModelInterface> pmod3,
84 std::unique_ptr<CodonFrequencySetInterface> pfreq,
85 std::shared_ptr<const AlphabetIndex2> pdist =
nullptr);
97 std::string
getName()
const override;
103 void setFreq(std::map<int, double>& frequencies)
override;
Abstract class for modelling of non-synonymous and synonymous substitution rates in codon models.
Abstract Class for substitution models on codons parametrized by a frequency.
const CodonFrequencySetInterface & codonFrequencySet() const override
bool hasCodonFrequencySet() const override
const FrequencySetInterface & frequencySet() const
Abstract class for substitution models on codons.
Class for asynonymous substitution models on codons with parameterized equilibrium frequencies and nu...
void setNamespace(const std::string &) 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...
CodonDistancePhaseFrequenciesSubstitutionModel * clone() const override
CodonDistancePhaseFrequenciesSubstitutionModel(std::shared_ptr< const GeneticCode > gCode, std::unique_ptr< NucleotideSubstitutionModelInterface > pmod, std::unique_ptr< CodonFrequencySetInterface > pfreq, std::shared_ptr< const AlphabetIndex2 > pdist=nullptr)
Build a new CodonDistancePhaseFrequenciesSubstitutionModel object from three pointers to AbstractSubs...
void fireParameterChanged(const ParameterList ¶meterlist) override
void setFreq(std::map< int, double > &frequencies) override
const CodonFrequencySetInterface & codonFrequencySet() const override
std::string getName() const override
Get the name of the model.
virtual ~CodonDistancePhaseFrequenciesSubstitutionModel()
bool hasCodonFrequencySet() const override
Parametrize a set of state frequencies for codons.
Defines the basic types of data flow nodes.