44 #include "../AbstractSubstitutionModel.h" 46 #include <Bpp/Numeric/Constraints.h> 49 #include <Bpp/Seq/Alphabet/NucleicAlphabet.h> 183 double kappa_,
piA_,
piC_,
piG_,
piT_,
piY_,
piR_,
r_,
k1_,
k2_,
theta_,
theta1_,
theta2_;
185 mutable RowMatrix<double>
p_;
189 const NucleicAlphabet * alpha,
198 #ifndef NO_VIRTUAL_COV 207 double Pij_t (
size_t i,
size_t j,
double d)
const;
208 double dPij_dt (
size_t i,
size_t j,
double d)
const;
209 double d2Pij_dt2(
size_t i,
size_t j,
double d)
const;
210 const Matrix<double>&
getPij_t (
double d)
const;
211 const Matrix<double>&
getdPij_dt (
double d)
const;
219 void setFreq(std::map<int, double>&);
const Matrix< double > & getPij_t(double d) const
double d2Pij_dt2(size_t i, size_t j, double d) const
const Matrix< double > & getd2Pij_dt2(double d) const
double dPij_dt(size_t i, size_t j, double d) const
Partial implementation of the ReversibleSubstitutionModel interface.
double Pij_t(size_t i, size_t j, double d) const
const Matrix< double > & getdPij_dt(double d) const
std::string getName() const
Get the name of the model.
Specialisation interface for nucleotide substitution model.
void setFreq(std::map< int, double > &)
This method is redefined to actualize the corresponding parameters piA, piT, piG and piC too...
void updateMatrices()
Compute and diagonalize the matrix, and fill the eigenValues_, leftEigenVectors_ and rightEigenVecto...
The Felsenstein (1984) substitution model for nucleotides.
F84(const NucleicAlphabet *alpha, double kappa=1., double piA=0.25, double piC=0.25, double piG=0.25, double piT=0.25)