5 #ifndef BPP_PHYL_MODEL_NUCLEOTIDE_HKY85_H
6 #define BPP_PHYL_MODEL_NUCLEOTIDE_HKY85_H
10 #include "../AbstractSubstitutionModel.h"
147 double kappa_,
k1_,
k2_,
r_,
piA_,
piC_,
piG_,
piT_,
piY_,
piR_,
theta_,
theta1_,
theta2_;
153 std::shared_ptr<const NucleicAlphabet> alpha,
165 double Pij_t (
size_t i,
size_t j,
double d)
const;
166 double dPij_dt (
size_t i,
size_t j,
double d)
const;
167 double d2Pij_dt2(
size_t i,
size_t j,
double d)
const;
172 std::string
getName()
const {
return "HKY85"; }
177 void setFreq(std::map<int, double>& freqs);
Specialisation abstract class for reversible nucleotide substitution model.
The Hasegawa M, Kishino H and Yano T (1985) substitution model for nucleotides.
std::string getName() const
Get the name of the model.
double dPij_dt(size_t i, size_t j, double d) const
void updateMatrices_()
Compute and diagonalize the matrix, and fill the eigenValues_, leftEigenVectors_ and rightEigenVecto...
HKY85(std::shared_ptr< const NucleicAlphabet > alpha, double kappa=1., double piA=0.25, double piC=0.25, double piG=0.25, double piT=0.25)
double Pij_t(size_t i, size_t j, double d) const
const Matrix< double > & getPij_t(double d) const
double d2Pij_dt2(size_t i, size_t j, double d) const
void setFreq(std::map< int, double > &freqs)
This method is redefined to actualize the corresponding parameters piA, piT, piG and piC too.
const Matrix< double > & getdPij_dt(double d) const
const Matrix< double > & getd2Pij_dt2(double d) const
Defines the basic types of data flow nodes.