bpp-phyl3  3.0.0
DFPDistanceFrequenciesSubstitutionModel.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_DFPDISTANCEFREQUENCIESSUBSTITUTIONMODEL_H
6 #define BPP_PHYL_MODEL_CODON_DFPDISTANCEFREQUENCIESSUBSTITUTIONMODEL_H
7 
8 
12 
13 namespace bpp
14 {
59 {
60 public:
74  std::shared_ptr<const GeneticCode> gCode,
75  std::unique_ptr<CodonFrequencySetInterface> pfreq,
76  std::shared_ptr<const AlphabetIndex2> pdist = nullptr);
77 
79 
81  {
83  }
84 
85 public:
86  void fireParameterChanged(const ParameterList& parameterlist) override;
87 
88  std::string getName() const override;
89 
90  double getCodonsMulRate(size_t i, size_t j) const override;
91 
92  void setNamespace(const std::string&) override;
93 
94  size_t getNumberOfStates() const override
95  {
96  return 64;
97  }
98 
99  void setFreq(std::map<int, double>& frequencies) override;
100 
102  {
104  }
105 
106  bool hasCodonFrequencySet() const override
107  {
109  }
110 };
111 } // end of namespace bpp.
112 #endif // BPP_PHYL_MODEL_CODON_DFPDISTANCEFREQUENCIESSUBSTITUTIONMODEL_H
Abstract class for modelling of non-synonymous and synonymous substitution rates in codon models.
Abstract Class for substitution models on codons parametrized by frequencies.
const CodonFrequencySetInterface & codonFrequencySet() const override
Class for neutral substitution models on triplets, following the mutation process proposed in Doron-F...
Parametrize a set of state frequencies for codons.
Class for non-synonymous substitution models on codons with parameterized equilibrium frequencies and...
size_t getNumberOfStates() const override
Get the number of states.
DFPDistanceFrequenciesSubstitutionModel * clone() const override
std::string getName() const override
Get the name of the model.
void setFreq(std::map< int, double > &frequencies) override
DFPDistanceFrequenciesSubstitutionModel(std::shared_ptr< const GeneticCode > gCode, std::unique_ptr< CodonFrequencySetInterface > pfreq, std::shared_ptr< const AlphabetIndex2 > pdist=nullptr)
Build a new DFPDistanceFrequenciesSubstitutionModel object from three pointers to AbstractSubstitutio...
const CodonFrequencySetInterface & codonFrequencySet() const 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 fireParameterChanged(const ParameterList &parameterlist) override
Defines the basic types of data flow nodes.