bpp-phyl3  3.0.0
LLG08_EHO.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_PROTEIN_LLG08_EHO_H
6 #define BPP_PHYL_MODEL_PROTEIN_LLG08_EHO_H
7 
8 
9 #include "../AbstractBiblioMixedTransitionModel.h"
10 #include "../AbstractSubstitutionModel.h"
11 #include "../MixtureOfTransitionModels.h"
13 
14 using namespace std;
15 
16 namespace bpp
17 {
43 class LLG08_EHO :
45 {
46 public:
47  class EmbeddedModel :
49  {
50 private:
51  double proportion_;
52  string name_;
53 
54 public:
55  EmbeddedModel(std::shared_ptr<const ProteicAlphabet> alpha, string name);
56  EmbeddedModel* clone() const override { return new EmbeddedModel(*this); }
57  string getName() const override { return name_;}
58  double getProportion() const { return proportion_;}
59  };
60 
61 public:
67  LLG08_EHO(std::shared_ptr<const ProteicAlphabet> alpha);
68 
69  LLG08_EHO* clone() const override { return new LLG08_EHO(*this); }
70 
71  std::string getName() const override { return "LLG08_EHO"; }
72 };
73 } // end of namespace bpp.
74 #endif // BPP_PHYL_MODEL_PROTEIN_LLG08_EHO_H
Abstract class for mixture models based on the bibliography.
Specialisation abstract class for reversible protein substitution model.
double getProportion() const
Definition: LLG08_EHO.h:58
string getName() const override
Get the name of the model.
Definition: LLG08_EHO.h:57
EmbeddedModel * clone() const override
Definition: LLG08_EHO.h:56
The Le et al (2008) EH0 substitution model for proteins.
Definition: LLG08_EHO.h:45
LLG08_EHO * clone() const override
Definition: LLG08_EHO.h:69
std::string getName() const override
Get the name of the model.
Definition: LLG08_EHO.h:71
Defines the basic types of data flow nodes.