bpp-phyl3
3.0.0
|
From a model, compute transition probabilities given there is at least a change in the branch. More...
#include <Bpp/Phyl/Model/OneChangeTransitionModel.h>
Public Member Functions | |
OneChangeTransitionModel (std::unique_ptr< SubstitutionModelInterface > originalModel) | |
OneChangeTransitionModel (const OneChangeTransitionModel &fmsm) | |
OneChangeTransitionModel & | operator= (const OneChangeTransitionModel &fmsm) |
virtual | ~OneChangeTransitionModel () |
OneChangeTransitionModel * | clone () const override |
double | Pij_t (size_t i, size_t j, double t) const override |
double | dPij_dt (size_t i, size_t j, double t) const override |
double | d2Pij_dt2 (size_t i, size_t j, double t) const override |
const Matrix< double > & | getPij_t (double t) const override |
const Matrix< double > & | getdPij_dt (double t) const override |
const Matrix< double > & | getd2Pij_dt2 (double t) const override |
double | freq (size_t i) const override |
const Vdouble & | getFrequencies () const override |
const FrequencySetInterface & | frequencySet () const override |
void | setFreqFromData (const SequenceDataInterface &data, double pseudoCount) override |
Set equilibrium frequencies equal to the frequencies estimated from the data. More... | |
virtual void | setFreq (std::map< int, double > &m) override |
Set equilibrium frequencies. More... | |
double | getRate () const override |
Get the rate. More... | |
void | setRate (double rate) override |
Set the rate of the model (must be positive). More... | |
double | getInitValue (size_t i, int state) const override |
std::string | getName () const override |
Get the name of the model. More... | |
const SubstitutionModelInterface & | substitutionModel () const |
const TransitionModelInterface & | transitionModel () const override |
const BranchModelInterface & | model () const override |
bool | computeFrequencies () const override |
void | computeFrequencies (bool yn) override |
virtual void | addRateParameter () override |
virtual void | fireParameterChanged (const ParameterList ¶meters) override |
virtual void | setNamespace (const std::string &prefix) override |
bool | hasIndependentParameter (const std::string &name) const |
const ParameterList & | getIndependentParameters () const |
size_t | getNumberOfIndependentParameters () const |
void | aliasParameters (const std::string &p1, const std::string &p2) |
void | aliasParameters (std::map< std::string, std::string > &unparsedParams, bool verbose) |
void | unaliasParameters (const std::string &p1, const std::string &p2) |
ParameterList | getAliasedParameters (const ParameterList &pl) const |
ParameterList | getFromParameters (const ParameterList &pl) const |
virtual std::vector< std::string > | getAlias (const std::string &name) const |
virtual std::map< std::string, std::string > | getAliases () const |
std::string | getFrom (const std::string &name) const |
bool | hasParameter (const std::string &name) const override |
const ParameterList & | getParameters () const override |
const Parameter & | parameter (const std::string &name) const override |
const std::shared_ptr< Parameter > & | getParameter (const std::string &name) const |
double | getParameterValue (const std::string &name) const override |
void | setAllParametersValues (const ParameterList ¶meters) override |
void | setParameterValue (const std::string &name, double value) override |
void | setParametersValues (const ParameterList ¶meters) override |
bool | matchParametersValues (const ParameterList ¶meters) override |
void | removeConstraint (const std::string &name) override |
void | setConstraint (const std::string &name, std::shared_ptr< ConstraintInterface > constraint) override |
size_t | getNumberOfParameters () const override |
std::string | getNamespace () const override |
std::string | getParameterNameWithoutNamespace (const std::string &name) const override |
virtual const Eigen::VectorXd & | Lik_t (const Eigen::VectorXd &values, double t) const =0 |
const Eigen::VectorXd & | Lik_t (const Eigen::VectorXd &values, double t) const override |
virtual const Eigen::VectorXd & | dLik_dt (const Eigen::VectorXd &values, double t) const =0 |
const Eigen::VectorXd & | dLik_dt (const Eigen::VectorXd &values, double t) const override |
virtual const Eigen::VectorXd & | d2Lik_dt2 (const Eigen::VectorXd &values, double t) const =0 |
const Eigen::VectorXd & | d2Lik_dt2 (const Eigen::VectorXd &values, double t) const override |
const std::vector< int > & | getAlphabetStates () const override |
const StateMapInterface & | stateMap () const override |
std::shared_ptr< const StateMapInterface > | getStateMap () const override |
int | getAlphabetStateAsInt (size_t i) const override |
std::string | getAlphabetStateAsChar (size_t i) const override |
std::vector< size_t > | getModelStates (int code) const override |
Get the state in the model corresponding to a particular state in the alphabet. More... | |
std::vector< size_t > | getModelStates (const std::string &code) const override |
Get the state in the model corresponding to a particular state in the alphabet. More... | |
const Alphabet & | alphabet () const override |
std::shared_ptr< const Alphabet > | getAlphabet () const override |
size_t | getNumberOfStates () const override |
Get the number of states. More... | |
Protected Attributes | |
std::unique_ptr< SubstitutionModelInterface > | subModel_ |
The related model. More... | |
size_t | size_ |
RowMatrix< double > | pij_t |
These ones are for bookkeeping: More... | |
RowMatrix< double > | dpij_t |
RowMatrix< double > | d2pij_t |
std::string | nestedPrefix_ |
Private Attributes | |
ParameterList | independentParameters_ |
std::map< std::string, std::shared_ptr< AliasParameterListener > > | aliasListenersRegister_ |
ParameterList | parameters_ |
std::string | prefix_ |
Eigen::VectorXd | lik_ |
From a model, compute transition probabilities given there is at least a change in the branch.
It has the same parameters as the SubModel.
Definition at line 20 of file OneChangeTransitionModel.h.
|
inline |
Definition at line 24 of file OneChangeTransitionModel.h.
Referenced by clone().
|
inline |
Definition at line 31 of file OneChangeTransitionModel.h.
|
inlinevirtual |
Definition at line 46 of file OneChangeTransitionModel.h.
|
inlineoverridevirtualinherited |
Implements bpp::BranchModelInterface.
Definition at line 107 of file AbstractFromSubstitutionModelTransitionModel.h.
References bpp::AbstractParameterAliasable::addParameter_(), bpp::BranchModelInterface::addRateParameter(), bpp::AbstractParameterAliasable::getNamespace(), bpp::BranchModelInterface::getRate(), bpp::AbstractFromSubstitutionModelTransitionModel::model(), bpp::AbstractFromSubstitutionModelTransitionModel::model_(), and bpp::Parameter::R_PLUS_STAR.
|
inlineoverridevirtualinherited |
Implements bpp::BranchModelInterface.
Reimplemented in bpp::RegisterRatesSubstitutionModel.
Definition at line 53 of file AbstractWrappedModel.h.
References bpp::BranchModelInterface::alphabet(), and bpp::WrappedModelInterface::model().
Referenced by bpp::RegisterRatesSubstitutionModel::alphabet(), and bpp::OneChangeRegisterTransitionModel::OneChangeRegisterTransitionModel().
|
inlineoverridevirtual |
Implements bpp::AbstractParameterAliasable.
Definition at line 48 of file OneChangeTransitionModel.h.
References OneChangeTransitionModel().
|
inlineoverridevirtualinherited |
Implements bpp::TransitionModelInterface.
Definition at line 69 of file AbstractFromSubstitutionModelTransitionModel.h.
References bpp::AbstractFromSubstitutionModelTransitionModel::subModel_.
|
inlineoverridevirtualinherited |
Implements bpp::TransitionModelInterface.
Definition at line 78 of file AbstractFromSubstitutionModelTransitionModel.h.
References bpp::AbstractFromSubstitutionModelTransitionModel::subModel_.
|
pure virtualinherited |
|
inlineoverridevirtualinherited |
Implements bpp::TransitionModelInterface.
Definition at line 64 of file AbstractSubstitutionModel.h.
References bpp::TransitionModelInterface::getd2Pij_dt2(), and bpp::AbstractLkTransitionModel::lik_.
|
overridevirtual |
Implements bpp::TransitionModelInterface.
Definition at line 60 of file OneChangeTransitionModel.cpp.
References bpp::exp().
|
pure virtualinherited |
|
inlineoverridevirtualinherited |
Implements bpp::TransitionModelInterface.
Definition at line 47 of file AbstractSubstitutionModel.h.
References bpp::TransitionModelInterface::getdPij_dt(), and bpp::AbstractLkTransitionModel::lik_.
|
overridevirtual |
Implements bpp::TransitionModelInterface.
Definition at line 34 of file OneChangeTransitionModel.cpp.
References bpp::exp().
|
inlineoverridevirtualinherited |
Reimplemented from bpp::AbstractParameterAliasable.
Reimplemented in bpp::OneChangeRegisterTransitionModel.
Definition at line 113 of file AbstractFromSubstitutionModelTransitionModel.h.
References bpp::AbstractParameterAliasable::fireParameterChanged(), bpp::ParameterAliasable::matchParametersValues(), and bpp::AbstractFromSubstitutionModelTransitionModel::model_().
Referenced by bpp::OneChangeRegisterTransitionModel::fireParameterChanged().
|
inlineoverridevirtual |
Implements bpp::TransitionModelInterface.
Definition at line 61 of file OneChangeTransitionModel.h.
References bpp::TransitionModelInterface::freq(), and bpp::AbstractFromSubstitutionModelTransitionModel::transitionModel().
|
inlineoverridevirtual |
Exception | if no FrequenceSet is associated to this model. |
Reimplemented from bpp::AbstractWrappedTransitionModel.
Definition at line 65 of file OneChangeTransitionModel.h.
References bpp::BranchModelInterface::frequencySet(), and bpp::AbstractFromSubstitutionModelTransitionModel::transitionModel().
|
inlineoverridevirtualinherited |
Implements bpp::BranchModelInterface.
Reimplemented in bpp::RegisterRatesSubstitutionModel.
Definition at line 55 of file AbstractWrappedModel.h.
References bpp::BranchModelInterface::getAlphabet(), and bpp::WrappedModelInterface::model().
Referenced by bpp::RegisterRatesSubstitutionModel::getAlphabet(), and bpp::OneChangeRegisterTransitionModel::OneChangeRegisterTransitionModel().
|
inlineoverridevirtualinherited |
index | The model state. |
Implements bpp::BranchModelInterface.
Reimplemented in bpp::RegisterRatesSubstitutionModel.
Definition at line 46 of file AbstractWrappedModel.h.
References bpp::BranchModelInterface::getAlphabetStateAsChar(), and bpp::WrappedModelInterface::model().
Referenced by bpp::RegisterRatesSubstitutionModel::getAlphabetStateAsChar().
|
inlineoverridevirtualinherited |
index | The model state. |
Implements bpp::BranchModelInterface.
Reimplemented in bpp::RegisterRatesSubstitutionModel.
Definition at line 44 of file AbstractWrappedModel.h.
References bpp::BranchModelInterface::getAlphabetStateAsInt(), and bpp::WrappedModelInterface::model().
Referenced by bpp::RegisterRatesSubstitutionModel::getAlphabetStateAsInt().
|
inlineoverridevirtualinherited |
@ brief Methods to supersede TransitionModel methods.
Implements bpp::BranchModelInterface.
Reimplemented in bpp::RegisterRatesSubstitutionModel.
Definition at line 38 of file AbstractWrappedModel.h.
References bpp::BranchModelInterface::getAlphabetStates(), and bpp::WrappedModelInterface::model().
Referenced by bpp::RegisterRatesSubstitutionModel::getAlphabetStates().
|
overridevirtual |
Implements bpp::TransitionModelInterface.
Definition at line 221 of file OneChangeTransitionModel.cpp.
References bpp::exp(), and RowMatrix< double >::getRow().
|
overridevirtual |
Implements bpp::TransitionModelInterface.
Definition at line 150 of file OneChangeTransitionModel.cpp.
References bpp::exp(), and RowMatrix< double >::getRow().
|
inlineoverridevirtual |
Implements bpp::TransitionModelInterface.
Definition at line 63 of file OneChangeTransitionModel.h.
References bpp::TransitionModelInterface::getFrequencies(), and bpp::AbstractFromSubstitutionModelTransitionModel::transitionModel().
|
inlineoverrideprotectedvirtualinherited |
Implements bpp::TransitionModelInterface.
Definition at line 85 of file AbstractFromSubstitutionModelTransitionModel.h.
References bpp::AbstractFromSubstitutionModelTransitionModel::subModel_.
|
inlineoverridevirtual |
This method is used to initialize likelihoods in recursions. It typically sends 1 if i = state, 0 otherwise, where i is one of the possible states of the alphabet allowed in the model and state is the observed state in the considered sequence/site.
i | the index of the state in the model. |
state | An observed state in the sequence/site. |
IndexOutOfBoundsException | if array position is out of range. |
BadIntException | if states are not allowed in the associated alphabet. |
Implements bpp::BranchModelInterface.
Definition at line 84 of file OneChangeTransitionModel.h.
References bpp::BranchModelInterface::getInitValue(), and bpp::AbstractFromSubstitutionModelTransitionModel::model().
|
inlineoverridevirtualinherited |
Get the state in the model corresponding to a particular state in the alphabet.
code | The alphabet state to check. |
Implements bpp::BranchModelInterface.
Reimplemented in bpp::RegisterRatesSubstitutionModel.
Definition at line 50 of file AbstractWrappedModel.h.
References bpp::BranchModelInterface::getModelStates(), and bpp::WrappedModelInterface::model().
|
inlineoverridevirtualinherited |
Get the state in the model corresponding to a particular state in the alphabet.
code | The alphabet state to check. |
Implements bpp::BranchModelInterface.
Reimplemented in bpp::RegisterRatesSubstitutionModel.
Definition at line 48 of file AbstractWrappedModel.h.
References bpp::BranchModelInterface::getModelStates(), and bpp::WrappedModelInterface::model().
Referenced by bpp::RegisterRatesSubstitutionModel::getModelStates().
|
inlineoverridevirtual |
Get the name of the model.
Reimplemented from bpp::AbstractWrappedModel.
Definition at line 89 of file OneChangeTransitionModel.h.
|
inlineoverridevirtualinherited |
Get the number of states.
For most models, this equals the size of the alphabet.
Implements bpp::BranchModelInterface.
Reimplemented in bpp::RegisterRatesSubstitutionModel.
Definition at line 57 of file AbstractWrappedModel.h.
References bpp::BranchModelInterface::getNumberOfStates(), and bpp::WrappedModelInterface::model().
|
overridevirtual |
Implements bpp::TransitionModelInterface.
Definition at line 106 of file OneChangeTransitionModel.cpp.
References bpp::exp(), and RowMatrix< double >::getRow().
|
inlineoverridevirtual |
Get the rate.
Implements bpp::BranchModelInterface.
Definition at line 80 of file OneChangeTransitionModel.h.
References bpp::BranchModelInterface::getRate(), and bpp::AbstractFromSubstitutionModelTransitionModel::transitionModel().
|
inlineoverridevirtualinherited |
Implements bpp::BranchModelInterface.
Reimplemented in bpp::RegisterRatesSubstitutionModel.
Definition at line 42 of file AbstractWrappedModel.h.
References bpp::BranchModelInterface::getStateMap(), and bpp::WrappedModelInterface::model().
Referenced by bpp::RegisterRatesSubstitutionModel::getStateMap().
|
pure virtualinherited |
This method is used to compute likelihoods in recursions. It computes the probability of a vector given a start state.
values | An vector of states on the site. |
t | time |
IndexOutOfBoundsException | if array position is out of range. |
BadIntException | if states are not allowed in the associated alphabet. |
Implemented in bpp::AbstractLkTransitionModel, bpp::TransitionModelInterface, bpp::TransitionFromTransitionModel, and bpp::MultinomialFromTransitionModel.
|
inlineoverridevirtualinherited |
This method is used to compute likelihoods in recursions. It computes the probability of a vector given a start state.
values | An vector of states on the site. |
t | the branch length |
Implements bpp::TransitionModelInterface.
Definition at line 30 of file AbstractSubstitutionModel.h.
References bpp::TransitionModelInterface::getPij_t(), and bpp::AbstractLkTransitionModel::lik_.
|
inlineoverridevirtualinherited |
Implements bpp::WrappedModelInterface.
Definition at line 64 of file AbstractFromSubstitutionModelTransitionModel.h.
References bpp::AbstractFromSubstitutionModelTransitionModel::subModel_.
Referenced by bpp::AbstractFromSubstitutionModelTransitionModel::addRateParameter(), bpp::OneChangeRegisterTransitionModel::getInitValue(), getInitValue(), and bpp::BppOSubstitutionModelFormat::write().
|
inlineprotectedinherited |
Definition at line 101 of file AbstractFromSubstitutionModelTransitionModel.h.
References bpp::AbstractFromSubstitutionModelTransitionModel::subModel_.
Referenced by bpp::AbstractFromSubstitutionModelTransitionModel::addRateParameter(), bpp::AbstractFromSubstitutionModelTransitionModel::fireParameterChanged(), and bpp::AbstractFromSubstitutionModelTransitionModel::setNamespace().
|
inline |
Definition at line 38 of file OneChangeTransitionModel.h.
References bpp::AbstractFromSubstitutionModelTransitionModel::operator=(), and bpp::AbstractParameterAliasable::operator=().
|
overridevirtual |
Implements bpp::TransitionModelInterface.
Definition at line 14 of file OneChangeTransitionModel.cpp.
References bpp::exp().
|
inlineoverridevirtual |
Set equilibrium frequencies.
frequencies | The map of the frequencies to use. |
Implements bpp::TransitionModelInterface.
Definition at line 75 of file OneChangeTransitionModel.h.
References bpp::TransitionModelInterface::setFreq(), and bpp::AbstractFromSubstitutionModelTransitionModel::transitionModel_().
|
inlineoverridevirtual |
Set equilibrium frequencies equal to the frequencies estimated from the data.
data | The sequences to use. |
pseudoCount | A quantity to add to adjust the observed values in order to prevent issues due to missing states on small data set. The corrected frequencies shall be computed as
|
Implements bpp::TransitionModelInterface.
Definition at line 70 of file OneChangeTransitionModel.h.
References bpp::TransitionModelInterface::setFreqFromData(), and bpp::AbstractFromSubstitutionModelTransitionModel::transitionModel_().
|
inlineoverridevirtualinherited |
Reimplemented from bpp::AbstractParameterAliasable.
Definition at line 119 of file AbstractFromSubstitutionModelTransitionModel.h.
References bpp::AbstractFromSubstitutionModelTransitionModel::model_(), bpp::AbstractFromSubstitutionModelTransitionModel::nestedPrefix_, bpp::AbstractParameterAliasable::setNamespace(), and bpp::ParameterAliasable::setNamespace().
|
inlineoverridevirtual |
Set the rate of the model (must be positive).
rate | must be positive. |
Implements bpp::BranchModelInterface.
Definition at line 82 of file OneChangeTransitionModel.h.
References bpp::BranchModelInterface::setRate(), and bpp::AbstractFromSubstitutionModelTransitionModel::transitionModel_().
|
inlineoverridevirtualinherited |
Implements bpp::BranchModelInterface.
Reimplemented in bpp::RegisterRatesSubstitutionModel.
Definition at line 40 of file AbstractWrappedModel.h.
References bpp::WrappedModelInterface::model(), and bpp::BranchModelInterface::stateMap().
Referenced by bpp::RegisterRatesSubstitutionModel::stateMap().
|
inlineinherited |
Definition at line 54 of file AbstractFromSubstitutionModelTransitionModel.h.
References bpp::AbstractFromSubstitutionModelTransitionModel::subModel_.
Referenced by bpp::OneChangeRegisterTransitionModel::d2Pij_dt2(), bpp::OneChangeRegisterTransitionModel::dPij_dt(), bpp::OneChangeRegisterTransitionModel::getd2Pij_dt2(), bpp::OneChangeRegisterTransitionModel::getdPij_dt(), bpp::OneChangeRegisterTransitionModel::getPij_t(), bpp::OneChangeRegisterTransitionModel::Pij_t(), and bpp::OneChangeRegisterTransitionModel::updateMatrices_().
|
inlineprotectedinherited |
Definition at line 90 of file AbstractFromSubstitutionModelTransitionModel.h.
References bpp::AbstractFromSubstitutionModelTransitionModel::subModel_.
|
inlineoverridevirtualinherited |
Implements bpp::WrappedTransitionModelInterface.
Definition at line 59 of file AbstractFromSubstitutionModelTransitionModel.h.
References bpp::AbstractFromSubstitutionModelTransitionModel::subModel_.
Referenced by bpp::OneChangeRegisterTransitionModel::d2Pij_dt2(), bpp::OneChangeRegisterTransitionModel::dPij_dt(), bpp::OneChangeRegisterTransitionModel::freq(), freq(), bpp::OneChangeRegisterTransitionModel::frequencySet(), frequencySet(), bpp::OneChangeRegisterTransitionModel::getd2Pij_dt2(), bpp::OneChangeRegisterTransitionModel::getdPij_dt(), bpp::OneChangeRegisterTransitionModel::getFrequencies(), getFrequencies(), bpp::OneChangeRegisterTransitionModel::getPij_t(), bpp::OneChangeRegisterTransitionModel::getRate(), getRate(), and bpp::OneChangeRegisterTransitionModel::Pij_t().
|
inlineoverrideprotectedvirtualinherited |
Implements bpp::AbstractWrappedTransitionModel.
Definition at line 96 of file AbstractFromSubstitutionModelTransitionModel.h.
References bpp::AbstractFromSubstitutionModelTransitionModel::subModel_.
Referenced by bpp::OneChangeRegisterTransitionModel::setFreq(), setFreq(), bpp::OneChangeRegisterTransitionModel::setFreqFromData(), setFreqFromData(), bpp::OneChangeRegisterTransitionModel::setRate(), and setRate().
|
mutableprotectedinherited |
Definition at line 38 of file AbstractFromSubstitutionModelTransitionModel.h.
Referenced by bpp::OneChangeRegisterTransitionModel::getd2Pij_dt2(), and bpp::AbstractFromSubstitutionModelTransitionModel::operator=().
|
mutableprotectedinherited |
Definition at line 37 of file AbstractFromSubstitutionModelTransitionModel.h.
Referenced by bpp::OneChangeRegisterTransitionModel::getdPij_dt(), and bpp::AbstractFromSubstitutionModelTransitionModel::operator=().
|
mutableprivateinherited |
Definition at line 23 of file AbstractSubstitutionModel.h.
Referenced by bpp::AbstractLkTransitionModel::d2Lik_dt2(), bpp::AbstractLkTransitionModel::dLik_dt(), and bpp::AbstractLkTransitionModel::Lik_t().
|
protectedinherited |
Definition at line 40 of file AbstractFromSubstitutionModelTransitionModel.h.
Referenced by bpp::AbstractFromSubstitutionModelTransitionModel::AbstractFromSubstitutionModelTransitionModel(), bpp::AbstractFromSubstitutionModelTransitionModel::operator=(), and bpp::AbstractFromSubstitutionModelTransitionModel::setNamespace().
|
mutableprotectedinherited |
These ones are for bookkeeping:
Definition at line 36 of file AbstractFromSubstitutionModelTransitionModel.h.
Referenced by bpp::OneChangeRegisterTransitionModel::getPij_t(), and bpp::AbstractFromSubstitutionModelTransitionModel::operator=().
|
protectedinherited |
The number of states
Definition at line 31 of file AbstractFromSubstitutionModelTransitionModel.h.
Referenced by bpp::OneChangeRegisterTransitionModel::d2Pij_dt2(), bpp::OneChangeRegisterTransitionModel::dPij_dt(), bpp::OneChangeRegisterTransitionModel::getd2Pij_dt2(), bpp::OneChangeRegisterTransitionModel::getdPij_dt(), bpp::OneChangeRegisterTransitionModel::getPij_t(), bpp::OneChangeRegisterTransitionModel::OneChangeRegisterTransitionModel(), bpp::AbstractFromSubstitutionModelTransitionModel::operator=(), bpp::OneChangeRegisterTransitionModel::Pij_t(), and bpp::OneChangeRegisterTransitionModel::updateMatrices_().
|
protectedinherited |
The related model.
Definition at line 26 of file AbstractFromSubstitutionModelTransitionModel.h.
Referenced by bpp::AbstractFromSubstitutionModelTransitionModel::AbstractFromSubstitutionModelTransitionModel(), bpp::AbstractFromSubstitutionModelTransitionModel::computeFrequencies(), bpp::AbstractFromSubstitutionModelTransitionModel::getFrequencies_(), bpp::AbstractFromSubstitutionModelTransitionModel::model(), bpp::AbstractFromSubstitutionModelTransitionModel::model_(), bpp::AbstractFromSubstitutionModelTransitionModel::operator=(), bpp::AbstractFromSubstitutionModelTransitionModel::substitutionModel(), bpp::AbstractFromSubstitutionModelTransitionModel::substitutionModel_(), bpp::AbstractFromSubstitutionModelTransitionModel::transitionModel(), and bpp::AbstractFromSubstitutionModelTransitionModel::transitionModel_().