5 #ifndef BPP_PHYL_MODEL_BINARYSUBSTITUTIONMODEL_H
6 #define BPP_PHYL_MODEL_BINARYSUBSTITUTIONMODEL_H
98 double Pij_t (
size_t i,
size_t j,
double d)
const;
99 double dPij_dt (
size_t i,
size_t j,
double d)
const;
100 double d2Pij_dt2(
size_t i,
size_t j,
double d)
const;
105 std::string
getName()
const {
return "Binary"; }
107 void setFreq(std::map<int, double>& freqs);
Partial implementation of the ReversibleSubstitutionModel interface.
double d2Pij_dt2(size_t i, size_t j, double d) const
BinarySubstitutionModel * clone() const
double Pij_t(size_t i, size_t j, double d) const
void updateMatrices_()
Compute and diagonalize the matrix, and fill the eigenValues_, leftEigenVectors_ and rightEigenVecto...
void setFreq(std::map< int, double > &freqs)
Set equilibrium frequencies.
const Matrix< double > & getPij_t(double d) const
size_t getNumberOfStates() const
Get the number of states.
std::string getName() const
Get the name of the model.
const Matrix< double > & getdPij_dt(double d) const
const Matrix< double > & getd2Pij_dt2(double d) const
double dPij_dt(size_t i, size_t j, double d) const
BinarySubstitutionModel(std::shared_ptr< const BinaryAlphabet > alpha, double kappa=1.)
virtual ~BinarySubstitutionModel()
Defines the basic types of data flow nodes.