bpp-phyl3
3.0.0
|
SubModel taken from a MixedTransitionModel, kept in the context of the MixedTransitionModel (see FromMixtureSubstitutionModel for an out of context subModel). So "rate" and "scale" are set for the MixedTransitionModel. More...
#include <Bpp/Phyl/Model/InMixedSubstitutionModel.h>
Public Member Functions | |
InMixedSubstitutionModel (std::unique_ptr< MixedTransitionModelInterface > mixedModel, const std::string &subModelName, const std::string &mixtDesc) | |
InMixedSubstitutionModel (std::unique_ptr< MixedTransitionModelInterface > mixedModel, size_t subModelNumber, const std::string &mixtDesc) | |
InMixedSubstitutionModel (const InMixedSubstitutionModel &fmsm) | |
InMixedSubstitutionModel & | operator= (const InMixedSubstitutionModel &fmsm) |
InMixedSubstitutionModel * | clone () const override |
const MixedTransitionModelInterface & | mixedModel () const |
const SubstitutionModelInterface & | substitutionModel () const override |
size_t | getSubModelNumber () const |
bool | computeFrequencies () const override |
void | computeFrequencies (bool yn) override |
bool | isScalable () const override |
returns if model is scalable More... | |
void | setScalable (bool scalable) override |
sets if model is scalable, ie scale can be changed. Default : true, set to false to avoid normalization for example. More... | |
double | getScale () const override |
Get the scalar product of diagonal elements of the generator and the frequencies vector. If the generator is normalized, then scale=1. Otherwise each element must be multiplied by 1/scale. More... | |
void | setScale (double scale) override |
Multiplies the current generator by the given scale. More... | |
void | normalize () override |
Normalize the generator. More... | |
void | setDiagonal () override |
set the diagonal of the generator such that sum on each line equals 0. More... | |
double | getRate () const override |
Get the rate. More... | |
void | setRate (double rate) override |
Set the rate of the model (must be positive). More... | |
void | addRateParameter () override |
std::string | getName () const override |
Get the name of the model. More... | |
const TransitionModelInterface & | transitionModel () const |
const FrequencySetInterface & | frequencySet () const override |
const BranchModelInterface & | model () const 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 |
double | freq (size_t i) 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 Vdouble & | getFrequencies () 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 | getInitValue (size_t i, int state) const override |
void | setFreqFromData (const SequenceDataInterface &data, double pseudoCount=0) override |
Set equilibrium frequencies equal to the frequencies estimated from the data. More... | |
void | setFreq (std::map< int, double > &frequencies) override |
Set equilibrium frequencies. More... | |
double | Qij (size_t i, size_t j) const override |
Methods to supersede SubstitutionModel methods. More... | |
const Matrix< double > & | generator () const override |
const Matrix< double > & | exchangeabilityMatrix () const override |
double | Sij (size_t i, size_t j) const override |
void | enableEigenDecomposition (bool yn) override |
Set if eigenValues and Vectors must be computed. More... | |
bool | enableEigenDecomposition () override |
Tell if eigenValues and Vectors must be computed. More... | |
bool | isDiagonalizable () const override |
bool | isNonSingular () const override |
const Vdouble & | getEigenValues () const override |
const Vdouble & | getIEigenValues () const override |
const Matrix< double > & | getRowLeftEigenVectors () const override |
const Matrix< double > & | getColumnRightEigenVectors () const override |
void | fireParameterChanged (const ParameterList ¶meters) override |
Methods to supersede AbstractSubstitutionnModel methods. More... | |
void | setNamespace (const std::string &name) 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... | |
Private Attributes | |
std::unique_ptr< MixedTransitionModelInterface > | mixedModelPtr_ |
The MixedOfTransitionModels. More... | |
size_t | subModelNumber_ |
the number of the submodel More... | |
std::string | mixtName_ |
The name of the mixture model (for io purpose). More... | |
ParameterList | independentParameters_ |
std::map< std::string, std::shared_ptr< AliasParameterListener > > | aliasListenersRegister_ |
ParameterList | parameters_ |
std::string | prefix_ |
Eigen::VectorXd | lik_ |
SubModel taken from a MixedTransitionModel, kept in the context of the MixedTransitionModel (see FromMixtureSubstitutionModel for an out of context subModel). So "rate" and "scale" are set for the MixedTransitionModel.
But method getRate returns the specific rate of the subModel.
It owns the MixedTransitionModel.
It has the same parameters as the MixedTransitionModel.
Definition at line 28 of file InMixedSubstitutionModel.h.
InMixedSubstitutionModel::InMixedSubstitutionModel | ( | std::unique_ptr< MixedTransitionModelInterface > | mixedModel, |
const std::string & | subModelName, | ||
const std::string & | mixtDesc | ||
) |
Definition at line 12 of file InMixedSubstitutionModel.cpp.
References bpp::AbstractParameterAliasable::addParameters_(), mixedModelPtr_, and subModelNumber_.
InMixedSubstitutionModel::InMixedSubstitutionModel | ( | std::unique_ptr< MixedTransitionModelInterface > | mixedModel, |
size_t | subModelNumber, | ||
const std::string & | mixtDesc | ||
) |
Definition at line 30 of file InMixedSubstitutionModel.cpp.
References bpp::AbstractParameterAliasable::addParameters_(), mixedModelPtr_, and bpp::TextTools::toString().
InMixedSubstitutionModel::InMixedSubstitutionModel | ( | const InMixedSubstitutionModel & | fmsm | ) |
Definition at line 51 of file InMixedSubstitutionModel.cpp.
|
inlineoverridevirtual |
Implements bpp::BranchModelInterface.
Definition at line 214 of file InMixedSubstitutionModel.h.
References bpp::AbstractParameterAliasable::addParameter_(), bpp::BranchModelInterface::addRateParameter(), bpp::AbstractParameterAliasable::getNamespace(), getRate(), mixedModel(), mixedModel_(), 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::SubstitutionModelInterface.
Definition at line 62 of file InMixedSubstitutionModel.h.
References bpp::AbstractLkTransitionModel::InMixedSubstitutionModel.
|
inlineoverridevirtual |
Implements bpp::TransitionModelInterface.
Definition at line 80 of file InMixedSubstitutionModel.h.
References bpp::TransitionModelInterface::computeFrequencies(), and mixedModel().
|
inlineoverridevirtual |
Implements bpp::TransitionModelInterface.
Definition at line 89 of file InMixedSubstitutionModel.h.
References bpp::TransitionModelInterface::computeFrequencies(), and mixedModel_().
|
pure virtualinherited |
|
inlineoverridevirtualinherited |
Implements bpp::TransitionModelInterface.
Definition at line 64 of file AbstractSubstitutionModel.h.
References bpp::TransitionModelInterface::getd2Pij_dt2(), and bpp::AbstractLkTransitionModel::lik_.
|
inlineoverridevirtual |
Implements bpp::TransitionModelInterface.
Definition at line 120 of file InMixedSubstitutionModel.h.
References bpp::TransitionModelInterface::d2Pij_dt2(), and bpp::AbstractWrappedSubstitutionModel::transitionModel().
|
pure virtualinherited |
|
inlineoverridevirtualinherited |
Implements bpp::TransitionModelInterface.
Definition at line 47 of file AbstractSubstitutionModel.h.
References bpp::TransitionModelInterface::getdPij_dt(), and bpp::AbstractLkTransitionModel::lik_.
|
inlineoverridevirtual |
Implements bpp::TransitionModelInterface.
Definition at line 119 of file InMixedSubstitutionModel.h.
References bpp::TransitionModelInterface::dPij_dt(), and bpp::AbstractWrappedSubstitutionModel::transitionModel().
|
inlineoverridevirtual |
Tell if eigenValues and Vectors must be computed.
Implements bpp::SubstitutionModelInterface.
Definition at line 160 of file InMixedSubstitutionModel.h.
References bpp::SubstitutionModelInterface::enableEigenDecomposition(), and substitutionModel_().
|
inlineoverridevirtual |
Set if eigenValues and Vectors must be computed.
Implements bpp::SubstitutionModelInterface.
Definition at line 158 of file InMixedSubstitutionModel.h.
References bpp::SubstitutionModelInterface::enableEigenDecomposition(), and substitutionModel_().
|
inlineoverridevirtual |
Implements bpp::SubstitutionModelInterface.
Definition at line 154 of file InMixedSubstitutionModel.h.
References bpp::SubstitutionModelInterface::exchangeabilityMatrix(), and substitutionModel().
|
inlineoverridevirtual |
Methods to supersede AbstractSubstitutionnModel methods.
Tells the model that a parameter value has changed.
This updates the matrices consequently.
Reimplemented from bpp::AbstractParameterAliasable.
Definition at line 235 of file InMixedSubstitutionModel.h.
References bpp::ParameterAliasable::matchParametersValues(), and mixedModel_().
|
inlineoverridevirtual |
@ brief Methods to supersede WrappedSubstitutionModel methods.
Implements bpp::TransitionModelInterface.
Definition at line 116 of file InMixedSubstitutionModel.h.
References bpp::TransitionModelInterface::freq(), and bpp::AbstractWrappedSubstitutionModel::transitionModel().
|
inlineoverridevirtualinherited |
Exception | if no FrequenceSet is associated to this model. |
Reimplemented from bpp::AbstractWrappedModel.
Reimplemented in bpp::RegisterRatesSubstitutionModel, bpp::OneChangeTransitionModel, bpp::OneChangeRegisterTransitionModel, and bpp::YN98.
Definition at line 93 of file AbstractWrappedModel.h.
References bpp::BranchModelInterface::frequencySet(), and bpp::WrappedTransitionModelInterface::transitionModel().
Referenced by bpp::RegisterRatesSubstitutionModel::frequencySet().
|
inlineoverridevirtual |
See Kosiol and Goldman (2005), Molecular Biology And Evolution 22(2) 193-9.
Implements bpp::SubstitutionModelInterface.
Definition at line 152 of file InMixedSubstitutionModel.h.
References bpp::SubstitutionModelInterface::generator(), and substitutionModel().
|
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().
|
inlineoverridevirtual |
Implements bpp::SubstitutionModelInterface.
Definition at line 172 of file InMixedSubstitutionModel.h.
References bpp::SubstitutionModelInterface::getColumnRightEigenVectors(), and substitutionModel().
|
inlineoverridevirtual |
Implements bpp::TransitionModelInterface.
Definition at line 128 of file InMixedSubstitutionModel.h.
References bpp::TransitionModelInterface::getd2Pij_dt2(), and bpp::AbstractWrappedSubstitutionModel::transitionModel().
|
inlineoverridevirtual |
Implements bpp::TransitionModelInterface.
Definition at line 126 of file InMixedSubstitutionModel.h.
References bpp::TransitionModelInterface::getdPij_dt(), and bpp::AbstractWrappedSubstitutionModel::transitionModel().
|
inlineoverridevirtual |
Implements bpp::SubstitutionModelInterface.
Definition at line 166 of file InMixedSubstitutionModel.h.
References bpp::SubstitutionModelInterface::getEigenValues(), and substitutionModel().
|
inlineoverridevirtual |
Implements bpp::TransitionModelInterface.
Definition at line 122 of file InMixedSubstitutionModel.h.
References bpp::TransitionModelInterface::getFrequencies(), and bpp::AbstractWrappedSubstitutionModel::transitionModel().
|
inlineoverrideprotectedvirtual |
Implements bpp::TransitionModelInterface.
Definition at line 95 of file InMixedSubstitutionModel.h.
References bpp::TransitionModelInterface::getFrequencies_(), and mixedModel_().
|
inlineoverridevirtual |
Implements bpp::SubstitutionModelInterface.
Definition at line 168 of file InMixedSubstitutionModel.h.
References bpp::SubstitutionModelInterface::getIEigenValues(), and substitutionModel().
|
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 130 of file InMixedSubstitutionModel.h.
References bpp::BranchModelInterface::getInitValue(), and bpp::AbstractWrappedTransitionModel::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 250 of file InMixedSubstitutionModel.h.
References mixedModelPtr_.
|
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().
|
inlineoverridevirtual |
Implements bpp::TransitionModelInterface.
Definition at line 124 of file InMixedSubstitutionModel.h.
References bpp::TransitionModelInterface::getPij_t(), and bpp::AbstractWrappedSubstitutionModel::transitionModel().
|
inlineoverridevirtual |
Get the rate.
Implements bpp::BranchModelInterface.
Definition at line 204 of file InMixedSubstitutionModel.h.
References bpp::BranchModelInterface::getRate(), and bpp::AbstractWrappedSubstitutionModel::transitionModel().
Referenced by addRateParameter().
|
inlineoverridevirtual |
Implements bpp::SubstitutionModelInterface.
Definition at line 170 of file InMixedSubstitutionModel.h.
References bpp::SubstitutionModelInterface::getRowLeftEigenVectors(), and substitutionModel().
|
inlineoverridevirtual |
Get the scalar product of diagonal elements of the generator and the frequencies vector. If the generator is normalized, then scale=1. Otherwise each element must be multiplied by 1/scale.
Implements bpp::SubstitutionModelInterface.
Definition at line 189 of file InMixedSubstitutionModel.h.
References bpp::SubstitutionModelInterface::getScale(), and substitutionModel().
|
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().
|
inline |
Definition at line 75 of file InMixedSubstitutionModel.h.
References subModelNumber_.
Referenced by bpp::BppOSubstitutionModelFormat::write().
|
inlineoverridevirtual |
Implements bpp::SubstitutionModelInterface.
Definition at line 162 of file InMixedSubstitutionModel.h.
References bpp::SubstitutionModelInterface::isDiagonalizable(), and substitutionModel().
|
inlineoverridevirtual |
Implements bpp::SubstitutionModelInterface.
Definition at line 164 of file InMixedSubstitutionModel.h.
References bpp::SubstitutionModelInterface::isNonSingular(), and substitutionModel().
|
inlineoverridevirtual |
returns if model is scalable
Implements bpp::SubstitutionModelInterface.
Definition at line 178 of file InMixedSubstitutionModel.h.
References bpp::SubstitutionModelInterface::isScalable(), and substitutionModel().
|
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_.
|
inline |
Definition at line 65 of file InMixedSubstitutionModel.h.
References mixedModelPtr_.
Referenced by addRateParameter(), computeFrequencies(), and bpp::BppOSubstitutionModelFormat::write().
|
inlineprotected |
Definition at line 100 of file InMixedSubstitutionModel.h.
References mixedModelPtr_.
Referenced by addRateParameter(), computeFrequencies(), fireParameterChanged(), getFrequencies_(), setFreq(), setFreqFromData(), setNamespace(), setRate(), and substitutionModel_().
|
inlineoverridevirtualinherited |
Implements bpp::WrappedModelInterface.
Definition at line 98 of file AbstractWrappedModel.h.
References bpp::WrappedTransitionModelInterface::transitionModel().
Referenced by bpp::AbstractBiblioTransitionModel::addRateParameter(), bpp::FromMixtureSubstitutionModel::addRateParameter(), getInitValue(), bpp::FromMixtureSubstitutionModel::getName(), bpp::RegisterRatesSubstitutionModel::getRate(), bpp::AbstractBiblioSubstitutionModel::operator=(), bpp::AbstractBiblioTransitionModel::operator=(), bpp::RegisterRatesSubstitutionModel::RegisterRatesSubstitutionModel(), bpp::AbstractBiblioTransitionModel::setFreq(), bpp::AbstractBiblioTransitionModel::setNamespace(), and bpp::BppOSubstitutionModelFormat::write().
|
inlineprotectedinherited |
Definition at line 85 of file AbstractWrappedModel.h.
References bpp::AbstractWrappedTransitionModel::transitionModel_().
Referenced by bpp::AbstractBiblioTransitionModel::addRateParameter(), bpp::FromMixtureSubstitutionModel::addRateParameter(), bpp::AbstractBiblioTransitionModel::fireParameterChanged(), bpp::FromMixtureSubstitutionModel::fireParameterChanged(), bpp::RegisterRatesSubstitutionModel::RegisterRatesSubstitutionModel(), bpp::AbstractBiblioTransitionModel::setNamespace(), bpp::FromMixtureSubstitutionModel::setNamespace(), bpp::RegisterRatesSubstitutionModel::setRate(), and bpp::AbstractBiblioTransitionModel::updateMatrices_().
|
inlineoverridevirtual |
Normalize the generator.
Implements bpp::SubstitutionModelInterface.
Definition at line 194 of file InMixedSubstitutionModel.h.
References bpp::SubstitutionModelInterface::normalize(), and substitutionModel_().
InMixedSubstitutionModel & InMixedSubstitutionModel::operator= | ( | const InMixedSubstitutionModel & | fmsm | ) |
Definition at line 64 of file InMixedSubstitutionModel.cpp.
References mixedModelPtr_, mixtName_, bpp::AbstractParameterAliasable::operator=(), and subModelNumber_.
|
inlineoverridevirtual |
Implements bpp::TransitionModelInterface.
Definition at line 118 of file InMixedSubstitutionModel.h.
References bpp::TransitionModelInterface::Pij_t(), and bpp::AbstractWrappedSubstitutionModel::transitionModel().
|
inlineoverridevirtual |
Methods to supersede SubstitutionModel methods.
Implements bpp::SubstitutionModelInterface.
Definition at line 150 of file InMixedSubstitutionModel.h.
References bpp::SubstitutionModelInterface::Qij(), and substitutionModel().
|
inlineoverridevirtual |
set the diagonal of the generator such that sum on each line equals 0.
Implements bpp::SubstitutionModelInterface.
Definition at line 199 of file InMixedSubstitutionModel.h.
References bpp::SubstitutionModelInterface::setDiagonal(), and substitutionModel_().
|
inlineoverridevirtual |
Set equilibrium frequencies.
frequencies | The map of the frequencies to use. |
Implements bpp::TransitionModelInterface.
Definition at line 140 of file InMixedSubstitutionModel.h.
References mixedModel_(), and bpp::TransitionModelInterface::setFreq().
|
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 135 of file InMixedSubstitutionModel.h.
References mixedModel_(), and bpp::TransitionModelInterface::setFreqFromData().
|
inlineoverridevirtual |
Reimplemented from bpp::AbstractParameterAliasable.
Definition at line 240 of file InMixedSubstitutionModel.h.
References mixedModel_(), 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 209 of file InMixedSubstitutionModel.h.
References mixedModel_(), and bpp::BranchModelInterface::setRate().
|
inlineoverridevirtual |
sets if model is scalable, ie scale can be changed. Default : true, set to false to avoid normalization for example.
Implements bpp::SubstitutionModelInterface.
Definition at line 183 of file InMixedSubstitutionModel.h.
References bpp::SubstitutionModelInterface::setScalable(), and substitutionModel_().
|
inlineoverridevirtual |
Multiplies the current generator by the given scale.
scale | the scale by which the generator is multiplied. |
Implements bpp::SubstitutionModelInterface.
Definition at line 191 of file InMixedSubstitutionModel.h.
References bpp::SubstitutionModelInterface::setScale(), and substitutionModel_().
|
inlineoverridevirtual |
By definition Sij(i,j) = Sij(j,i).
Implements bpp::SubstitutionModelInterface.
Definition at line 156 of file InMixedSubstitutionModel.h.
References bpp::SubstitutionModelInterface::Sij(), and substitutionModel().
|
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().
|
inlineoverridevirtual |
Implements bpp::WrappedSubstitutionModelInterface.
Definition at line 70 of file InMixedSubstitutionModel.h.
References mixedModelPtr_, and subModelNumber_.
Referenced by exchangeabilityMatrix(), generator(), getColumnRightEigenVectors(), getEigenValues(), getIEigenValues(), getRowLeftEigenVectors(), getScale(), isDiagonalizable(), isNonSingular(), isScalable(), Qij(), and Sij().
|
inlineoverrideprotectedvirtual |
Implements bpp::AbstractWrappedSubstitutionModel.
Definition at line 105 of file InMixedSubstitutionModel.h.
References mixedModel_(), bpp::MixedTransitionModelInterface::nModel_(), and subModelNumber_.
Referenced by enableEigenDecomposition(), normalize(), setDiagonal(), setScalable(), and setScale().
|
inlinevirtualinherited |
Implements bpp::WrappedTransitionModelInterface.
Reimplemented in bpp::RegisterRatesSubstitutionModel.
Definition at line 199 of file AbstractWrappedModel.h.
References bpp::WrappedSubstitutionModelInterface::substitutionModel().
Referenced by d2Pij_dt2(), dPij_dt(), freq(), getd2Pij_dt2(), getdPij_dt(), getFrequencies(), getPij_t(), getRate(), and Pij_t().
|
inlineprotectedvirtualinherited |
Implements bpp::AbstractWrappedTransitionModel.
Reimplemented in bpp::RegisterRatesSubstitutionModel.
Definition at line 205 of file AbstractWrappedModel.h.
References bpp::AbstractWrappedSubstitutionModel::substitutionModel_().
|
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 MixedOfTransitionModels.
Definition at line 35 of file InMixedSubstitutionModel.h.
Referenced by getName(), InMixedSubstitutionModel(), mixedModel(), mixedModel_(), operator=(), and substitutionModel().
|
private |
The name of the mixture model (for io purpose).
Definition at line 45 of file InMixedSubstitutionModel.h.
Referenced by operator=().
|
private |
the number of the submodel
Definition at line 40 of file InMixedSubstitutionModel.h.
Referenced by getSubModelNumber(), InMixedSubstitutionModel(), operator=(), substitutionModel(), and substitutionModel_().