7 #include "../FrequencySet/NucleotideFrequencySet.h"
19 shared_ptr<const NucleicAlphabet> alphabet,
20 double alpha,
double beta,
double gamma,
double kappa,
double theta) :
26 alpha_(alpha), beta_(beta), gamma_(gamma), kappa_(kappa), theta_(theta)
Specialisation abstract class for nucleotide substitution model.
void addParameter_(Parameter *parameter)
void setParameterValue(const std::string &name, double value) override
double getParameterValue(const std::string &name) const override
RowMatrix< double > generator_
The generator matrix of the model.
bool computeFrequencies() const
virtual void updateMatrices_()
Diagonalize the matrix, and fill the eigenValues_, iEigenValues_, leftEigenVectors_ and rightEigenVe...
void setScale(double scale)
Multiplies the current generator by the given scale.
Vdouble freq_
The vector of equilibrium frequencies.
This class implements a state map where all resolved states are modeled.
void setFreq(std::map< int, double > &) override
This method is redefined to actualize the corresponding parameters theta too.
void updateMatrices_() override
Diagonalize the matrix, and fill the eigenValues_, iEigenValues_, leftEigenVectors_ and rightEigenVe...
L95(std::shared_ptr< const NucleicAlphabet > alphabet, double alpha=0.5, double beta=0.5, double gamma=0.5, double kappa=1., double theta=0.5)
static const std::shared_ptr< IntervalConstraint > PROP_CONSTRAINT_IN
Defines the basic types of data flow nodes.