14 std::shared_ptr<const GeneticCode> gCode,
15 std::unique_ptr<NucleotideSubstitutionModelInterface> pmod,
16 std::unique_ptr<CodonFrequencySetInterface> pfreq,
17 std::shared_ptr<const AlphabetIndex2> pdist,
30 std::shared_ptr<const GeneticCode> gCode,
31 std::unique_ptr<NucleotideSubstitutionModelInterface> pmod1,
32 std::unique_ptr<NucleotideSubstitutionModelInterface> pmod2,
33 std::unique_ptr<NucleotideSubstitutionModelInterface> pmod3,
34 std::unique_ptr<CodonFrequencySetInterface> pfreq,
35 std::shared_ptr<const AlphabetIndex2> pdist,
49 return "CodonDistFreq";
Abstract class for modelling of non-synonymous and synonymous substitution rates in codon models.
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...
void fireParameterChanged(const ParameterList ¶meters) override
Abstract Class for substitution models on codons parametrized by frequencies.
const CodonFrequencySetInterface & codonFrequencySet() const override
void setFreq(std::map< int, double > &frequencies) override
void fireParameterChanged(const ParameterList ¶meters) override
double getCodonsMulRate(size_t, size_t) const override
Returns the multiplicative rate specific to two codons specified by their number. The respective gene...
void setNamespace(const std::string &prefix) override
Abstract class for substitution models on codons.
void updateMatrices_() override
Diagonalize the matrix, and fill the eigenValues_, iEigenValues_, leftEigenVectors_ and rightEigenVe...
void setNamespace(const std::string &prefix) override
void setNamespace(const std::string &prefix)
bool computeFrequencies() const
virtual void fireParameterChanged(const ParameterList ¶meters) override
Tells the model that a parameter value has changed.
Vdouble & getFrequencies_() override
void fireParameterChanged(const ParameterList ¶meterlist) override
void setFreq(std::map< int, double > &frequencies) 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...
std::string getName() const override
Get the name of the model.
CodonDistanceFrequenciesSubstitutionModel(std::shared_ptr< const GeneticCode > gCode, std::unique_ptr< NucleotideSubstitutionModelInterface > pmod, std::unique_ptr< CodonFrequencySetInterface > pfreq, std::shared_ptr< const AlphabetIndex2 > pdist=nullptr, bool paramSynRate=false)
Build a new CodonDistanceFrequenciesSubstitutionModel object from three pointers to AbstractSubstitut...
void setNamespace(const std::string &) override
virtual const Vdouble & getFrequencies() const =0
Defines the basic types of data flow nodes.