13 std::shared_ptr<const GeneticCode> gCode,
14 std::unique_ptr<NucleotideSubstitutionModelInterface> pmod,
15 std::unique_ptr<CodonFrequencySetInterface> pfreq,
16 std::shared_ptr<const AlphabetIndex2> pdist) :
28 std::shared_ptr<const GeneticCode> gCode,
29 std::unique_ptr<NucleotideSubstitutionModelInterface> pmod1,
30 std::unique_ptr<NucleotideSubstitutionModelInterface> pmod2,
31 std::unique_ptr<NucleotideSubstitutionModelInterface> pmod3,
32 std::unique_ptr<CodonFrequencySetInterface> pfreq,
33 std::shared_ptr<const AlphabetIndex2> pdist) :
46 return "CodonDistPhasFreq";
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 a frequency.
const CodonFrequencySetInterface & codonFrequencySet() const 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 setFreq(std::map< int, double > &frequencies) override
void setNamespace(const std::string &prefix) override
void fireParameterChanged(const ParameterList ¶meters) 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 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(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
std::string getName() const override
Get the name of the model.
virtual const Vdouble & getFrequencies() const =0
Defines the basic types of data flow nodes.