bpp-phyl3  3.0.0
RELAX.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_RELAX_H
6 #define BPP_PHYL_MODEL_CODON_RELAX_H
7 
9 
10 #include "YNGP_M.h"
11 
12 namespace bpp
13 {
40 class RELAX :
41  public YNGP_M
42 {
43 public:
44  RELAX(
45  std::shared_ptr<const GeneticCode> gc,
46  std::unique_ptr<CodonFrequencySetInterface> codonFreqs);
47 
48  RELAX* clone() const override { return new RELAX(*this); }
49 
50 protected:
51  void updateMatrices_() override;
52 
53 public:
54  std::string getName() const override { return "RELAX"; }
55 };
56 } // end of namespace bpp.
57 #endif // BPP_PHYL_MODEL_CODON_RELAX_H
The RELAX (2014) branch-site model for codons.
Definition: RELAX.h:42
void updateMatrices_() override
Definition: RELAX.cpp:128
RELAX(std::shared_ptr< const GeneticCode > gc, std::unique_ptr< CodonFrequencySetInterface > codonFreqs)
Definition: RELAX.cpp:19
RELAX * clone() const override
Definition: RELAX.h:48
std::string getName() const override
Get the name of the model.
Definition: RELAX.h:54
Abstract generic class for The Yang et al (2000) M substitution models for codons....
Definition: YNGP_M.h:32
Defines the basic types of data flow nodes.