11 std::shared_ptr<const GeneticCode> gCode,
12 std::unique_ptr<NucleotideSubstitutionModelInterface> pmod,
13 std::unique_ptr<FrequencySetInterface> pfit,
14 std::shared_ptr<const AlphabetIndex2> pdist) :
25 std::shared_ptr<const GeneticCode> gCode,
26 std::unique_ptr<NucleotideSubstitutionModelInterface> pmod1,
27 std::unique_ptr<NucleotideSubstitutionModelInterface> pmod2,
28 std::unique_ptr<NucleotideSubstitutionModelInterface> pmod3,
29 std::unique_ptr<FrequencySetInterface> pfit,
30 std::shared_ptr<const AlphabetIndex2> pdist) :
68 map<int, double> freq2;
71 for (
auto& it : frequencies)
77 for (
auto& it : freq2)
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 modelling of ratios of substitution rates between codons, whatever they are synony...
void setFreq(std::map< int, double > &frequencies) override
void fireParameterChanged(const ParameterList ¶meters) 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...
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)
virtual void fireParameterChanged(const ParameterList ¶meters) override
Tells the model that a parameter value has changed.
const Vdouble & getFrequencies() const override
virtual void setFreq(std::map< int, double > &freqs) override
Set equilibrium frequencies.
virtual size_t getStateIndex(int state) const=0
virtual std::shared_ptr< const Alphabet > getAlphabet() const =0
virtual const Alphabet & alphabet() const =0
void setNamespace(const std::string &) override
void setFreq(std::map< int, double > &frequencies) override
set the fitness of the model from given frequencies, such that the equilibrium frequencies of the mod...
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...
SENCA(std::shared_ptr< const GeneticCode > gCode, std::unique_ptr< NucleotideSubstitutionModelInterface > pmod, std::unique_ptr< FrequencySetInterface > pfit, std::shared_ptr< const AlphabetIndex2 > pdist=nullptr)
void fireParameterChanged(const ParameterList ¶meterlist) override
virtual bool computeFrequencies() const =0
Defines the basic types of data flow nodes.
std::vector< double > Vdouble