bpp-phyl3 3.0.0
YNGP_M3.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_YNGP_M3_H
6#define BPP_PHYL_MODEL_CODON_YNGP_M3_H
7
9
10#include "YNGP_M.h"
11
12namespace bpp
13{
37class YNGP_M3 :
38 public YNGP_M
39{
40public:
41 YNGP_M3(
42 std::shared_ptr<const GeneticCode> gc,
43 std::unique_ptr<CodonFrequencySetInterface> codonFreqs,
44 unsigned int nclass = 3);
45
46 YNGP_M3* clone() const override { return new YNGP_M3(*this); }
47
48public:
49 std::string getName() const override { return "YNGP_M3"; }
50
51protected:
52 void updateMatrices_() override;
53};
54} // end of namespace bpp.
55#endif // BPP_PHYL_MODEL_CODON_YNGP_M3_H
The Yang et al (2000) M3 substitution model for codons.
Definition: YNGP_M3.h:39
std::string getName() const override
Get the name of the model.
Definition: YNGP_M3.h:49
YNGP_M3(std::shared_ptr< const GeneticCode > gc, std::unique_ptr< CodonFrequencySetInterface > codonFreqs, unsigned int nclass=3)
Definition: YNGP_M3.cpp:17
YNGP_M3 * clone() const override
Definition: YNGP_M3.h:46
void updateMatrices_() override
Definition: YNGP_M3.cpp:123
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.