13 std::shared_ptr<const GeneticCode> gCode,
14 std::unique_ptr<NucleotideSubstitutionModelInterface> pmod,
15 std::shared_ptr<const AlphabetIndex2> pdist) :
18 gCode->getSourceAlphabet(),
29 std::shared_ptr<const GeneticCode> gCode,
30 std::unique_ptr<NucleotideSubstitutionModelInterface> pmod1,
31 std::unique_ptr<NucleotideSubstitutionModelInterface> pmod2,
32 std::unique_ptr<NucleotideSubstitutionModelInterface> pmod3,
33 std::shared_ptr<const AlphabetIndex2> pdist) :
36 gCode->getSourceAlphabet(),
47 std::shared_ptr<const GeneticCode> gCode,
48 std::unique_ptr<NucleotideSubstitutionModelInterface> pmod,
49 const vector<std::set< size_t>>& vPos,
50 std::shared_ptr<const AlphabetIndex2> pdist) :
53 gCode->getSourceAlphabet(),
64 std::shared_ptr<const GeneticCode> gCode,
65 std::unique_ptr<NucleotideSubstitutionModelInterface> pmod1,
66 std::unique_ptr<NucleotideSubstitutionModelInterface> pmod2,
67 std::unique_ptr<NucleotideSubstitutionModelInterface> pmod3,
68 const vector<std::set<size_t>>& vPos,
69 std::shared_ptr<const AlphabetIndex2> pdist) :
72 gCode->getSourceAlphabet(),
84 return "KronCodonDist";
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 allowing multiple substitutions.
virtual double getCodonsMulRate(size_t i, size_t j) const override
Method inherited from CodonSubstitutionModel.
Abstract Kronecker Word Model.
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.
void updateMatrices_()
Diagonalize the matrix, and fill the eigenValues_, iEigenValues_, leftEigenVectors_ and rightEigenVe...
void setNamespace(const std::string &prefix)
This class implements a state map where all resolved states are modeled.
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.
void setNamespace(const std::string &) override
void fireParameterChanged(const ParameterList ¶meterlist) override
KroneckerCodonDistanceSubstitutionModel(std::shared_ptr< const GeneticCode > gCode, std::unique_ptr< NucleotideSubstitutionModelInterface > pmod, std::shared_ptr< const AlphabetIndex2 > pdist=nullptr)
Build a new KroneckerCodonDistanceSubstitutionModel object from three pointers to AbstractSubstitutio...
Map the states of a given alphabet which have a model state.
Defines the basic types of data flow nodes.