5 #ifndef BPP_PHYL_MODEL_NUCLEOTIDE_TN93_H
6 #define BPP_PHYL_MODEL_NUCLEOTIDE_TN93_H
10 #include "../AbstractSubstitutionModel.h"
97 double kappa1_,
kappa2_,
piA_,
piC_,
piG_,
piT_,
piY_,
piR_,
r_,
k1_,
k2_,
theta_,
theta1_,
theta2_;
103 std::shared_ptr<const NucleicAlphabet> alpha,
116 double Pij_t (
size_t i,
size_t j,
double d)
const override;
117 double dPij_dt (
size_t i,
size_t j,
double d)
const override;
118 double d2Pij_dt2(
size_t i,
size_t j,
double d)
const override;
123 std::string
getName()
const override {
return "TN93"; }
128 void setFreq(std::map<int, double>& freqs)
override;
Specialisation abstract class for reversible nucleotide substitution model.
The Tamura and Nei (1993) substitution model for nucleotides.
double Pij_t(size_t i, size_t j, double d) const override
const Matrix< double > & getdPij_dt(double d) const override
std::string getName() const override
Get the name of the model.
void setFreq(std::map< int, double > &freqs) override
This method is over-defined to actualize the corresponding parameters piA, piT, piG and piC too.
const Matrix< double > & getd2Pij_dt2(double d) const override
void updateMatrices_() override
Compute and diagonalize the matrix, and fill the eigenValues_, leftEigenVectors_ and rightEigenVecto...
TN93(std::shared_ptr< const NucleicAlphabet > alpha, double kappa1=1., double kappa2=1., double piA=0.25, double piC=0.25, double piG=0.25, double piT=0.25)
double dPij_dt(size_t i, size_t j, double d) const override
TN93 * clone() const override
double d2Pij_dt2(size_t i, size_t j, double d) const override
const Matrix< double > & getPij_t(double d) const override
Defines the basic types of data flow nodes.