bpp-phyl3  3.0.0
CodonDistanceSubstitutionModel.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: The Bio++ Development Group
2 //
3 // SPDX-License-Identifier: CECILL-2.1
4 
5 #ifndef BPP_PHYL_MODEL_CODON_CODONDISTANCESUBSTITUTIONMODEL_H
6 #define BPP_PHYL_MODEL_CODON_CODONDISTANCESUBSTITUTIONMODEL_H
7 
8 
11 
12 namespace bpp
13 {
40 {
41 public:
52  std::shared_ptr<const GeneticCode> gCode,
53  std::unique_ptr<NucleotideSubstitutionModelInterface> pmod,
54  std::shared_ptr<const AlphabetIndex2> pdist);
55 
69  std::shared_ptr<const GeneticCode> gCode,
70  std::unique_ptr<NucleotideSubstitutionModelInterface> pmod1,
71  std::unique_ptr<NucleotideSubstitutionModelInterface> pmod2,
72  std::unique_ptr<NucleotideSubstitutionModelInterface> pmod3,
73  std::shared_ptr<const AlphabetIndex2> pdist);
74 
76 
78  {
79  return new CodonDistanceSubstitutionModel(*this);
80  }
81 
82  void setNamespace(const std::string& prefix)
83  {
85  }
86 
87 public:
88  void fireParameterChanged(const ParameterList& parameterlist);
89 
90  std::string getName() const;
91 
92  double getCodonsMulRate(size_t i, size_t j) const;
93 };
94 } // end of namespace bpp.
95 #endif // BPP_PHYL_MODEL_CODON_CODONDISTANCESUBSTITUTIONMODEL_H
Abstract class for modelling of non-synonymous and synonymous substitution rates in codon models.
Abstract class for substitution models on codons.
Class for substitution models of codons with non-synonymous/synonymous ratios of substitution rates d...
double getCodonsMulRate(size_t i, size_t j) const
Returns the multiplicative rate specific to two codons specified by their number. The respective gene...
void setNamespace(const std::string &prefix)
CodonDistanceSubstitutionModel(std::shared_ptr< const GeneticCode > gCode, std::unique_ptr< NucleotideSubstitutionModelInterface > pmod, std::shared_ptr< const AlphabetIndex2 > pdist)
Build a new CodonDistanceSubstitutionModel object from a pointer to NucleotideSubstitutionModel.
CodonDistanceSubstitutionModel * clone() const
void fireParameterChanged(const ParameterList &parameterlist)
std::string getName() const
Get the name of the model.
Defines the basic types of data flow nodes.