25 std::shared_ptr<const CodonAlphabet> palph,
26 std::unique_ptr<NucleotideSubstitutionModelInterface> pmod) :
34 for (i = 0; i < 3; i++)
42 for (i = 0; i < 2; i++)
51 std::shared_ptr<const CodonAlphabet> palph,
52 std::unique_ptr<NucleotideSubstitutionModelInterface> pmod1,
53 std::unique_ptr<NucleotideSubstitutionModelInterface> pmod2,
54 std::unique_ptr<NucleotideSubstitutionModelInterface> pmod3) :
58 string st =
"Triplet.";
60 VSubMod_.push_back(std::move(pmod1));
65 VSubMod_.push_back(std::move(pmod2));
70 VSubMod_.push_back(std::move(pmod3));
76 for (
unsigned int i = 0; i < 3; ++i)
82 for (
unsigned int i = 0; i < 2; ++i)
92 string s =
"TripletSubstitutionModel model:";
95 s +=
" " + vi->getName();
void addParameters_(const ParameterList ¶meters)
void addParameter_(Parameter *parameter)
std::string getNamespace() const override
const ParameterList & getParameters() const override
std::vector< double > Vrate_
std::vector< std::shared_ptr< SubstitutionModelInterface > > VSubMod_
std::vector< std::string > VnestedPrefix_
This class implements a state map where all resolved states are modeled.
static const std::shared_ptr< IntervalConstraint > PROP_CONSTRAINT_EX
std::string getName() const override
Get the name of the model.
TripletSubstitutionModel(std::shared_ptr< const CodonAlphabet > palph, std::unique_ptr< NucleotideSubstitutionModelInterface > pmod)
Build a new TripletSubstitutionModel object from a pointer to a NucleotideSubstitutionModel.
Basal class for words of substitution models.
virtual void updateMatrices_() override
Diagonalize the matrix, and fill the eigenValues_, iEigenValues_, leftEigenVectors_ and rightEigenVe...
std::string toString(T t)
Defines the basic types of data flow nodes.