bpp-phyl3  3.0.0
LG10_EX_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_LG10_EX_EHO_H
6 #define BPP_PHYL_MODEL_PROTEIN_LG10_EX_EHO_H
7 
8 
9 #include "../AbstractBiblioMixedTransitionModel.h"
10 #include "../AbstractSubstitutionModel.h"
12 
13 using namespace std;
14 
15 namespace bpp
16 {
39 class LG10_EX_EHO :
41 {
42 public:
43  class EmbeddedModel :
45  {
46 private:
47  double proportion_;
48  string name_;
49 
50 public:
51  EmbeddedModel(std::shared_ptr<const ProteicAlphabet> alpha, string name);
52  EmbeddedModel* clone() const { return new EmbeddedModel(*this); }
53  string getName() const { return name_;}
54  double getProportion() const { return proportion_;}
55  };
56 
57 public:
65  LG10_EX_EHO(std::shared_ptr<const ProteicAlphabet> alpha);
66 
67  LG10_EX_EHO* clone() const { return new LG10_EX_EHO(*this); }
68 
69  std::string getName() const { return "LG10_EX_EHO"; }
70 };
71 } // end of namespace bpp.
72 #endif // BPP_PHYL_MODEL_PROTEIN_LG10_EX_EHO_H
Abstract class for mixture models based on the bibliography.
Specialisation abstract class for reversible protein substitution model.
EmbeddedModel * clone() const
Definition: LG10_EX_EHO.h:52
string getName() const
Get the name of the model.
Definition: LG10_EX_EHO.h:53
The Le and Gascuel (2010) EX_EHO substitution model for proteins.
Definition: LG10_EX_EHO.h:41
LG10_EX_EHO * clone() const
Definition: LG10_EX_EHO.h:67
std::string getName() const
Get the name of the model.
Definition: LG10_EX_EHO.h:69
Defines the basic types of data flow nodes.