5 #ifndef BPP_PHYL_MODEL_WORDSUBSTITUTIONMODEL_H
6 #define BPP_PHYL_MODEL_WORDSUBSTITUTIONMODEL_H
69 std::unique_ptr<SubstitutionModelInterface> pmodel,
71 const std::string& prefix =
"");
82 std::shared_ptr<const Alphabet>
alphabet,
83 std::shared_ptr<const StateMapInterface>
stateMap,
84 const std::string& prefix =
"");
97 virtual std::string
getName()
const override;
const Alphabet & alphabet() const override
const StateMapInterface & stateMap() const override
Abstract Basal class for words of substitution models.
A list of models, for building a WordSubstitutionModel.
Basal class for words of substitution models.
WordSubstitutionModel * clone() const override
virtual void updateMatrices_() override
Diagonalize the matrix, and fill the eigenValues_, iEigenValues_, leftEigenVectors_ and rightEigenVe...
virtual void completeMatrices_() override
Called by updateMatrices to handle specific modifications for inheriting classes.
WordSubstitutionModel(ModelList &modelList, const std::string &prefix="")
Build a new WordSubstitutionModel object from a Vector of pointers to SubstitutionModels.
virtual ~WordSubstitutionModel()
virtual const RowMatrix< double > & getdPij_dt(double d) const override
virtual const RowMatrix< double > & getd2Pij_dt2(double d) const override
virtual const RowMatrix< double > & getPij_t(double d) const override
virtual std::string getName() const override
Get the name of the model.
Defines the basic types of data flow nodes.