bpp-phyl3
3.0.0
|
From a model, compute transition probabilities given there is at least a change of a category (ie a non null number in a register) in the branch. More...
#include <Bpp/Phyl/Model/OneChangeRegisterTransitionModel.h>
Public Member Functions | |
OneChangeRegisterTransitionModel (std::unique_ptr< SubstitutionModelInterface > originalModel, const SubstitutionRegisterInterface ®, size_t numReg) | |
OneChangeRegisterTransitionModel (std::unique_ptr< SubstitutionModelInterface > originalModel, const SubstitutionRegisterInterface ®, std::vector< size_t > vNumRegs) | |
Constructor. More... | |
OneChangeRegisterTransitionModel (const OneChangeRegisterTransitionModel &fmsm) | |
OneChangeRegisterTransitionModel & | operator= (const OneChangeRegisterTransitionModel &fmsm) |
virtual | ~OneChangeRegisterTransitionModel () |
OneChangeRegisterTransitionModel * | clone () const override |
void | fireParameterChanged (const ParameterList ¶meters) 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 std::string & | getRegisterName () const |
const std::vector< size_t > & | getRegisterNumbers () const |
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 | 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 | |
RowMatrix< uint > | noChangedStates_ |
std::unique_ptr< AnonymousSubstitutionModel > | modelChanged_ |
std::string | registerName_ |
std::vector< size_t > | vNumRegs_ |
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 of a category (ie a non null number in a register) in the branch.
It has the same parameters as the SubModel.
Definition at line 24 of file OneChangeRegisterTransitionModel.h.
OneChangeRegisterTransitionModel::OneChangeRegisterTransitionModel | ( | std::unique_ptr< SubstitutionModelInterface > | originalModel, |
const SubstitutionRegisterInterface & | reg, | ||
size_t | numReg | ||
) |
Definition at line 13 of file OneChangeRegisterTransitionModel.cpp.
References bpp::AbstractWrappedModel::alphabet(), bpp::SubstitutionRegisterInterface::getNumberOfSubstitutionTypes(), bpp::RowMatrix< class >::getRow(), bpp::SubstitutionRegisterInterface::getType(), modelChanged_, noChangedStates_, bpp::AbstractFromSubstitutionModelTransitionModel::size_, and updateMatrices_().
Referenced by clone().
OneChangeRegisterTransitionModel::OneChangeRegisterTransitionModel | ( | std::unique_ptr< SubstitutionModelInterface > | originalModel, |
const SubstitutionRegisterInterface & | reg, | ||
std::vector< size_t > | vNumRegs | ||
) |
Constructor.
originalModel | the substitution model used |
reg | the register in which the considered type of event is defined. |
vNumRegs | the vector of numbers of the considered event in the register. |
Definition at line 49 of file OneChangeRegisterTransitionModel.cpp.
References bpp::AbstractWrappedModel::getAlphabet(), bpp::SubstitutionRegisterInterface::getNumberOfSubstitutionTypes(), bpp::RowMatrix< class >::getRow(), bpp::SubstitutionRegisterInterface::getType(), modelChanged_, noChangedStates_, bpp::AbstractFromSubstitutionModelTransitionModel::size_, updateMatrices_(), and vNumRegs_.
|
inline |
Definition at line 78 of file OneChangeRegisterTransitionModel.h.
|
inlinevirtual |
Definition at line 103 of file OneChangeRegisterTransitionModel.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 OneChangeRegisterTransitionModel().
|
inlineoverridevirtual |
Implements bpp::AbstractParameterAliasable.
Definition at line 105 of file OneChangeRegisterTransitionModel.h.
References OneChangeRegisterTransitionModel().
|
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 174 of file OneChangeRegisterTransitionModel.cpp.
References bpp::TransitionModelInterface::d2Pij_dt2(), bpp::TransitionModelInterface::dPij_dt(), bpp::SubstitutionModelInterface::generator(), bpp::BranchModelInterface::getRate(), modelChanged_, bpp::TransitionModelInterface::Pij_t(), bpp::AbstractFromSubstitutionModelTransitionModel::size_, bpp::AbstractFromSubstitutionModelTransitionModel::substitutionModel(), and bpp::AbstractFromSubstitutionModelTransitionModel::transitionModel().
|
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 136 of file OneChangeRegisterTransitionModel.cpp.
References bpp::SubstitutionModelInterface::generator(), bpp::BranchModelInterface::getRate(), modelChanged_, Pij_t(), bpp::AbstractFromSubstitutionModelTransitionModel::size_, bpp::AbstractFromSubstitutionModelTransitionModel::substitutionModel(), and bpp::AbstractFromSubstitutionModelTransitionModel::transitionModel().
|
inlineoverridevirtual |
Reimplemented from bpp::AbstractFromSubstitutionModelTransitionModel.
Definition at line 111 of file OneChangeRegisterTransitionModel.h.
References bpp::AbstractFromSubstitutionModelTransitionModel::fireParameterChanged(), and updateMatrices_().
|
inlineoverridevirtual |
Implements bpp::TransitionModelInterface.
Definition at line 127 of file OneChangeRegisterTransitionModel.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 137 of file OneChangeRegisterTransitionModel.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 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 366 of file OneChangeRegisterTransitionModel.cpp.
References bpp::AbstractFromSubstitutionModelTransitionModel::d2pij_t, bpp::SubstitutionModelInterface::generator(), bpp::TransitionModelInterface::getd2Pij_dt2(), bpp::TransitionModelInterface::getdPij_dt(), bpp::TransitionModelInterface::getPij_t(), bpp::BranchModelInterface::getRate(), RowMatrix< double >::getRow(), modelChanged_, bpp::AbstractFromSubstitutionModelTransitionModel::size_, bpp::AbstractFromSubstitutionModelTransitionModel::substitutionModel(), and bpp::AbstractFromSubstitutionModelTransitionModel::transitionModel().
|
overridevirtual |
Implements bpp::TransitionModelInterface.
Definition at line 287 of file OneChangeRegisterTransitionModel.cpp.
References bpp::AbstractFromSubstitutionModelTransitionModel::dpij_t, bpp::SubstitutionModelInterface::generator(), bpp::TransitionModelInterface::getdPij_dt(), bpp::TransitionModelInterface::getPij_t(), bpp::BranchModelInterface::getRate(), RowMatrix< double >::getRow(), modelChanged_, bpp::AbstractFromSubstitutionModelTransitionModel::size_, bpp::AbstractFromSubstitutionModelTransitionModel::substitutionModel(), and bpp::AbstractFromSubstitutionModelTransitionModel::transitionModel().
|
inlineoverridevirtual |
Implements bpp::TransitionModelInterface.
Definition at line 132 of file OneChangeRegisterTransitionModel.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 156 of file OneChangeRegisterTransitionModel.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 161 of file OneChangeRegisterTransitionModel.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 228 of file OneChangeRegisterTransitionModel.cpp.
References bpp::SubstitutionModelInterface::generator(), bpp::TransitionModelInterface::getPij_t(), bpp::BranchModelInterface::getRate(), RowMatrix< double >::getRow(), modelChanged_, bpp::AbstractFromSubstitutionModelTransitionModel::pij_t, bpp::AbstractFromSubstitutionModelTransitionModel::size_, bpp::AbstractFromSubstitutionModelTransitionModel::substitutionModel(), and bpp::AbstractFromSubstitutionModelTransitionModel::transitionModel().
|
inlineoverridevirtual |
Get the rate.
Implements bpp::BranchModelInterface.
Definition at line 152 of file OneChangeRegisterTransitionModel.h.
References bpp::BranchModelInterface::getRate(), and bpp::AbstractFromSubstitutionModelTransitionModel::transitionModel().
Referenced by Pij_t().
|
inline |
Definition at line 166 of file OneChangeRegisterTransitionModel.h.
References registerName_.
Referenced by bpp::BppOSubstitutionModelFormat::write().
|
inline |
Definition at line 171 of file OneChangeRegisterTransitionModel.h.
References vNumRegs_.
Referenced by bpp::BppOSubstitutionModelFormat::write().
|
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(), getInitValue(), bpp::OneChangeTransitionModel::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 90 of file OneChangeRegisterTransitionModel.h.
References modelChanged_, noChangedStates_, bpp::AbstractFromSubstitutionModelTransitionModel::operator=(), bpp::AbstractParameterAliasable::operator=(), registerName_, and vNumRegs_.
|
overridevirtual |
Implements bpp::TransitionModelInterface.
Definition at line 116 of file OneChangeRegisterTransitionModel.cpp.
References bpp::SubstitutionModelInterface::generator(), getRate(), modelChanged_, bpp::TransitionModelInterface::Pij_t(), bpp::AbstractFromSubstitutionModelTransitionModel::size_, bpp::AbstractFromSubstitutionModelTransitionModel::substitutionModel(), and bpp::AbstractFromSubstitutionModelTransitionModel::transitionModel().
Referenced by dPij_dt().
|
inlineoverridevirtual |
Set equilibrium frequencies.
frequencies | The map of the frequencies to use. |
Implements bpp::TransitionModelInterface.
Definition at line 147 of file OneChangeRegisterTransitionModel.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 142 of file OneChangeRegisterTransitionModel.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 154 of file OneChangeRegisterTransitionModel.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 d2Pij_dt2(), dPij_dt(), getd2Pij_dt2(), getdPij_dt(), getPij_t(), Pij_t(), and 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 d2Pij_dt2(), dPij_dt(), freq(), bpp::OneChangeTransitionModel::freq(), frequencySet(), bpp::OneChangeTransitionModel::frequencySet(), getd2Pij_dt2(), getdPij_dt(), getFrequencies(), bpp::OneChangeTransitionModel::getFrequencies(), getPij_t(), getRate(), bpp::OneChangeTransitionModel::getRate(), and Pij_t().
|
inlineoverrideprotectedvirtualinherited |
Implements bpp::AbstractWrappedTransitionModel.
Definition at line 96 of file AbstractFromSubstitutionModelTransitionModel.h.
References bpp::AbstractFromSubstitutionModelTransitionModel::subModel_.
Referenced by setFreq(), bpp::OneChangeTransitionModel::setFreq(), setFreqFromData(), bpp::OneChangeTransitionModel::setFreqFromData(), setRate(), and bpp::OneChangeTransitionModel::setRate().
|
protected |
Definition at line 88 of file OneChangeRegisterTransitionModel.cpp.
References bpp::SubstitutionModelInterface::generator(), bpp::RowMatrix< class >::getRow(), RowMatrix< double >::getRow(), modelChanged_, noChangedStates_, bpp::AbstractFromSubstitutionModelTransitionModel::size_, and bpp::AbstractFromSubstitutionModelTransitionModel::substitutionModel().
Referenced by fireParameterChanged(), and OneChangeRegisterTransitionModel().
|
mutableprotectedinherited |
Definition at line 38 of file AbstractFromSubstitutionModelTransitionModel.h.
Referenced by getd2Pij_dt2(), and bpp::AbstractFromSubstitutionModelTransitionModel::operator=().
|
mutableprotectedinherited |
Definition at line 37 of file AbstractFromSubstitutionModelTransitionModel.h.
Referenced by 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().
|
private |
The SubstitutionModel in which generator has registered changes set to 0.
Definition at line 38 of file OneChangeRegisterTransitionModel.h.
Referenced by d2Pij_dt2(), dPij_dt(), getd2Pij_dt2(), getdPij_dt(), getPij_t(), OneChangeRegisterTransitionModel(), operator=(), Pij_t(), and updateMatrices_().
|
protectedinherited |
Definition at line 40 of file AbstractFromSubstitutionModelTransitionModel.h.
Referenced by bpp::AbstractFromSubstitutionModelTransitionModel::AbstractFromSubstitutionModelTransitionModel(), bpp::AbstractFromSubstitutionModelTransitionModel::operator=(), and bpp::AbstractFromSubstitutionModelTransitionModel::setNamespace().
|
private |
Boolean matrix of the substitutions that are NOT considered (ie for which the changes generator equal the ones of the original model).
Definition at line 32 of file OneChangeRegisterTransitionModel.h.
Referenced by OneChangeRegisterTransitionModel(), operator=(), and updateMatrices_().
|
mutableprotectedinherited |
These ones are for bookkeeping:
Definition at line 36 of file AbstractFromSubstitutionModelTransitionModel.h.
Referenced by getPij_t(), and bpp::AbstractFromSubstitutionModelTransitionModel::operator=().
|
private |
For output
Definition at line 43 of file OneChangeRegisterTransitionModel.h.
Referenced by getRegisterName(), and operator=().
|
protectedinherited |
The number of states
Definition at line 31 of file AbstractFromSubstitutionModelTransitionModel.h.
Referenced by d2Pij_dt2(), dPij_dt(), getd2Pij_dt2(), getdPij_dt(), getPij_t(), OneChangeRegisterTransitionModel(), bpp::AbstractFromSubstitutionModelTransitionModel::operator=(), Pij_t(), and 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_().
|
private |
Vector of considered categories numbers in the register
Definition at line 48 of file OneChangeRegisterTransitionModel.h.
Referenced by getRegisterNumbers(), OneChangeRegisterTransitionModel(), and operator=().