5 #ifndef BPP_PHYL_MODEL_TWOPARAMETERBINARYSUBSTITUTIONMODEL_H
6 #define BPP_PHYL_MODEL_TWOPARAMETERBINARYSUBSTITUTIONMODEL_H
100 double Pij_t (
size_t i,
size_t j,
double d)
const;
101 double dPij_dt (
size_t i,
size_t j,
double d)
const;
102 double d2Pij_dt2(
size_t i,
size_t j,
double d)
const;
107 std::string
getName()
const {
return "TwoParameterBinary"; }
Partial implementation of the ReversibleSubstitutionModel interface.
const Matrix< double > & getd2Pij_dt2(double d) const
double dPij_dt(size_t i, size_t j, double d) const
void setMuBounds(double lb, double ub)
std::string getName() const
Get the name of the model.
TwoParameterBinarySubstitutionModel(std::shared_ptr< const BinaryAlphabet > alpha, double mu=1., double pi0=0.5)
size_t getNumberOfStates() const
Get the number of states.
double d2Pij_dt2(size_t i, size_t j, double d) const
void updateMatrices_()
Compute and diagonalize the matrix, and fill the eigenValues_, leftEigenVectors_ and rightEigenVecto...
virtual ~TwoParameterBinarySubstitutionModel()
const Matrix< double > & getdPij_dt(double d) const
const Matrix< double > & getPij_t(double d) const
double Pij_t(size_t i, size_t j, double d) const
TwoParameterBinarySubstitutionModel * clone() const
Defines the basic types of data flow nodes.