5 #ifndef BPP_PHYL_MODEL_NUCLEOTIDE_F81_H
6 #define BPP_PHYL_MODEL_NUCLEOTIDE_F81_H
10 #include "../AbstractSubstitutionModel.h"
153 std::shared_ptr<const NucleicAlphabet> alpha,
164 double Pij_t (
size_t i,
size_t j,
double d)
const override;
165 double dPij_dt (
size_t i,
size_t j,
double d)
const override;
166 double d2Pij_dt2(
size_t i,
size_t j,
double d)
const override;
171 std::string
getName()
const override {
return "F81"; }
176 void setFreq(std::map<int, double>& freqs)
override;
Specialisation abstract class for reversible nucleotide substitution model.
The Felsenstein (1981) substitution model for nucleotides.
void updateMatrices_() override
Compute and diagonalize the matrix, and fill the eigenValues_, leftEigenVectors_ and rightEigenVecto...
std::string getName() const override
Get the name of the model.
void setFreq(std::map< int, double > &freqs) override
This method is redefined to actualize the corresponding parameters piA, piT, piG and piC too.
const Matrix< double > & getdPij_dt(double d) const override
const Matrix< double > & getPij_t(double d) const override
double dPij_dt(size_t i, size_t j, double d) const override
const Matrix< double > & getd2Pij_dt2(double d) const override
double d2Pij_dt2(size_t i, size_t j, double d) const override
double Pij_t(size_t i, size_t j, double d) const override
F81(std::shared_ptr< const NucleicAlphabet > alpha, double piA=0.25, double piC=0.25, double piG=0.25, double piT=0.25)
F81 * clone() const override
Defines the basic types of data flow nodes.