bpp-core3
3.0.0
|
Describe the auto-correlation probabilities inside hidden states of a Hidden Markov Model. More...
#include <Bpp/Numeric/Hmm/AutoCorrelationTransitionMatrix.h>
Public Member Functions | |
AutoCorrelationTransitionMatrix (std::shared_ptr< const HmmStateAlphabet > alph, const std::string &prefix="") | |
AutoCorrelationTransitionMatrix (const AutoCorrelationTransitionMatrix &hptm) | |
AutoCorrelationTransitionMatrix & | operator= (const AutoCorrelationTransitionMatrix &hptm) |
AutoCorrelationTransitionMatrix * | clone () const override |
Create a copy of this object and send a pointer to it. More... | |
double | Pij (size_t i, size_t j) const override |
Get the transition probability between two states. More... | |
const Matrix< double > & | getPij () const override |
Get all transition probabilities as a matrix. More... | |
const std::vector< double > & | getEquilibriumFrequencies () const override |
void | fireParameterChanged (const ParameterList ¶meters) override |
Notify the class when one or several parameters have changed. More... | |
std::shared_ptr< const HmmStateAlphabet > | getHmmStateAlphabet () const |
const HmmStateAlphabet & | hmmStateAlphabet () const |
void | setHmmStateAlphabet (std::shared_ptr< const HmmStateAlphabet > stateAlphabet) |
Set the new hidden state alphabet. More... | |
size_t | getNumberOfStates () const |
std::vector< size_t > | sample (size_t size) const |
sampling of a sequence of states. Starting point is sampled from the equilibrium distribution. More... | |
virtual bool | hasParameter (const std::string &name) const =0 |
Tell if there is a parameter with specified name. More... | |
virtual const ParameterList & | getParameters () const =0 |
Get all parameters available. More... | |
virtual const Parameter & | parameter (const std::string &name) const =0 |
Get the parameter with specified name. More... | |
virtual double | getParameterValue (const std::string &name) const =0 |
Get the value for parameter of name 'name'. More... | |
virtual void | setAllParametersValues (const ParameterList ¶meters)=0 |
Set the parameters values to be equals to those of parameters. More... | |
virtual void | setParameterValue (const std::string &name, double value)=0 |
Set the value of parameter with name name to be equal to value. More... | |
virtual void | setParametersValues (const ParameterList ¶meters)=0 |
Update the parameters from parameters. More... | |
virtual bool | matchParametersValues (const ParameterList ¶meters)=0 |
Update the parameters from parameters. More... | |
virtual void | removeConstraint (const std::string &name)=0 |
Remove the constraint associated with one parameter, if any. More... | |
virtual void | setConstraint (const std::string &name, std::shared_ptr< ConstraintInterface > constraint)=0 |
Set/Change the constraint associated with one parameter. More... | |
virtual size_t | getNumberOfParameters () const =0 |
Get the number of parameters. More... | |
virtual void | setNamespace (const std::string &prefix)=0 |
Set the namespace for the parameter names. More... | |
virtual std::string | getNamespace () const =0 |
virtual std::string | getParameterNameWithoutNamespace (const std::string &name) const =0 |
Resolves a parameter name according to the current namespace. More... | |
bool | hasParameter (const std::string &name) const override |
Tell if there is a parameter with specified name. More... | |
const ParameterList & | getParameters () const override |
Get all parameters available. More... | |
const Parameter & | parameter (const std::string &name) const override |
Get the parameter with specified name. More... | |
const std::shared_ptr< Parameter > & | getParameter (const std::string &name) const |
double | getParameterValue (const std::string &name) const override |
Get the value for parameter of name 'name'. More... | |
void | setAllParametersValues (const ParameterList ¶meters) override |
Set the parameters values to be equals to those of parameters. More... | |
void | setParameterValue (const std::string &name, double value) override |
Set the value of parameter with name name to be equal to value. More... | |
void | setParametersValues (const ParameterList ¶meters) override |
Update the parameters from parameters. More... | |
bool | matchParametersValues (const ParameterList ¶meters) override |
Update the parameters from parameters. More... | |
void | removeConstraint (const std::string &name) override |
Remove the constraint associated with one parameter, if any. More... | |
void | setConstraint (const std::string &name, std::shared_ptr< ConstraintInterface > constraint) override |
Set/Change the constraint associated with one parameter. More... | |
size_t | getNumberOfParameters () const override |
Get the number of parameters. More... | |
void | setNamespace (const std::string &prefix) override |
Set the namespace for the parameter names. More... | |
std::string | getNamespace () const override |
std::string | getParameterNameWithoutNamespace (const std::string &name) const override |
Resolves a parameter name according to the current namespace. More... | |
Protected Member Functions | |
virtual ParameterList & | getParameters_ ()=0 |
Get all parameters available. More... | |
const std::shared_ptr< Parameter > & | getParameter (size_t i) const |
std::shared_ptr< Parameter > & | getParameter (size_t i) |
virtual void | addParameter_ (Parameter *parameter) |
virtual void | addParameters_ (const ParameterList ¶meters) |
virtual void | shareParameter_ (const std::shared_ptr< Parameter > ¶meter) |
virtual void | shareParameters_ (const ParameterList ¶meters) |
virtual void | includeParameters_ (const ParameterList ¶meters) |
virtual void | deleteParameter_ (size_t index) |
virtual void | deleteParameter_ (std::string &name) |
virtual void | deleteParameters_ (const std::vector< std::string > &names) |
void | resetParameters_ () |
Parameter & | getParameter_ (const std::string &name) |
Parameter & | getParameter_ (size_t index) |
const Parameter & | getParameter_ (size_t index) const |
Parameter & | getParameterWithNamespace_ (const std::string &name) |
const Parameter & | getParameterWithNamespace_ (const std::string &name) const |
ParameterList & | getParameters_ () override |
Get all parameters available. More... | |
Protected Attributes | |
RowMatrix< double > | pij_ |
RowMatrix< double > | tmpmat_ |
Vdouble | eqFreq_ |
bool | upToDate_ |
Private Attributes | |
std::vector< double > | vAutocorrel_ |
Describe the auto-correlation probabilities inside hidden states of a Hidden Markov Model.
This modelling behaves like a HMM in which, from a given state, all transition probabilities to the other states are equal.
The parameters are the within states transition probabilities, denoted as "lambaN"
with N the number of the state (1 is the first).
Definition at line 25 of file AutoCorrelationTransitionMatrix.h.
AutoCorrelationTransitionMatrix::AutoCorrelationTransitionMatrix | ( | std::shared_ptr< const HmmStateAlphabet > | alph, |
const std::string & | prefix = "" |
||
) |
Definition at line 13 of file AutoCorrelationTransitionMatrix.cpp.
References bpp::AbstractParametrizable::addParameter_(), bpp::AbstractHmmTransitionMatrix::eqFreq_, bpp::AbstractHmmTransitionMatrix::getNumberOfStates(), bpp::Parameter::PROP_CONSTRAINT_EX, bpp::TextTools::toString(), and vAutocorrel_.
Referenced by clone().
AutoCorrelationTransitionMatrix::AutoCorrelationTransitionMatrix | ( | const AutoCorrelationTransitionMatrix & | hptm | ) |
Definition at line 34 of file AutoCorrelationTransitionMatrix.cpp.
|
inlineprotectedvirtualinherited |
Reimplemented in bpp::AbstractParameterAliasable.
Definition at line 111 of file AbstractParametrizable.h.
References bpp::ParameterList::addParameter().
Referenced by bpp::AbstractParameterAliasable::addParameter_(), and AutoCorrelationTransitionMatrix().
|
inlineprotectedvirtualinherited |
Reimplemented in bpp::AbstractParameterAliasable.
Definition at line 117 of file AbstractParametrizable.h.
References bpp::ParameterList::addParameters().
Referenced by bpp::AbstractParameterAliasable::addParameters_(), bpp::FullHmmTransitionMatrix::FullHmmTransitionMatrix(), bpp::LogsumHmmLikelihood::LogsumHmmLikelihood(), bpp::LowMemoryRescaledHmmLikelihood::LowMemoryRescaledHmmLikelihood(), and bpp::RescaledHmmLikelihood::RescaledHmmLikelihood().
|
inlineoverridevirtual |
Create a copy of this object and send a pointer to it.
Implements bpp::HmmTransitionMatrix.
Definition at line 39 of file AutoCorrelationTransitionMatrix.h.
References AutoCorrelationTransitionMatrix().
|
inlineprotectedvirtualinherited |
Reimplemented in bpp::AbstractParameterAliasable.
Definition at line 137 of file AbstractParametrizable.h.
References bpp::ParameterList::deleteParameter(), and bpp::ParameterList::size().
Referenced by bpp::AbstractParameterAliasable::deleteParameter_().
|
inlineprotectedvirtualinherited |
Reimplemented in bpp::AbstractParameterAliasable.
Definition at line 144 of file AbstractParametrizable.h.
References bpp::ParameterList::deleteParameter().
|
inlineprotectedvirtualinherited |
Reimplemented in bpp::AbstractParameterAliasable.
Definition at line 149 of file AbstractParametrizable.h.
References bpp::ParameterList::deleteParameters().
|
overridevirtual |
Notify the class when one or several parameters have changed.
parameters | A ParameterList object with parameters that changed. |
Reimplemented from bpp::AbstractParametrizable.
Definition at line 73 of file AutoCorrelationTransitionMatrix.cpp.
References bpp::AbstractHmmTransitionMatrix::getNumberOfStates(), bpp::AbstractParametrizable::getParameterValue(), bpp::TextTools::toString(), bpp::AbstractHmmTransitionMatrix::upToDate_, and vAutocorrel_.
Referenced by Pij().
|
overridevirtual |
Implements bpp::HmmTransitionMatrix.
Definition at line 68 of file AutoCorrelationTransitionMatrix.cpp.
References bpp::AbstractHmmTransitionMatrix::eqFreq_.
Referenced by Pij().
|
inlinevirtualinherited |
Implements bpp::HmmTransitionMatrix.
Definition at line 42 of file AbstractHmmTransitionMatrix.h.
References bpp::AbstractHmmTransitionMatrix::alph_.
|
inlineoverridevirtualinherited |
Implements bpp::Parametrizable.
Definition at line 99 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::getParameterNameWithoutNamespace(), and bpp::AbstractParametrizable::prefix_.
Referenced by bpp::AbstractParameterAliasable::aliasParameters(), bpp::MixtureOfDiscreteDistributions::MixtureOfDiscreteDistributions(), bpp::Simplex::setFrequencies(), and bpp::AbstractParameterAliasable::setNamespace().
|
pure virtualinherited |
Implemented in bpp::FunctionWrapper, bpp::ParametrizableAdapter, and bpp::AbstractParametrizable.
Referenced by bpp::Parametrizable::~Parametrizable().
|
inlineoverridevirtualinherited |
Get the number of parameters.
Implements bpp::Parametrizable.
Definition at line 95 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::setNamespace(), and bpp::ParameterList::size().
Referenced by bpp::AbstractParameterAliasable::AbstractParameterAliasable(), bpp::AbstractParameterAliasable::aliasParameters(), bpp::SimpleDiscreteDistribution::fireParameterChanged(), bpp::AbstractParameterAliasable::operator=(), bpp::ConstantDistribution::restrictToConstraint(), and bpp::SimpleDiscreteDistribution::restrictToConstraint().
|
pure virtualinherited |
Get the number of parameters.
Implemented in bpp::FunctionWrapper, bpp::ParametrizableAdapter, bpp::AbstractParametrizable, and bpp::DirectionFunction.
Referenced by bpp::BppODiscreteDistributionFormat::writeDiscreteDistribution(), and bpp::Parametrizable::~Parametrizable().
|
inlinevirtualinherited |
Implements bpp::HmmTransitionMatrix.
Definition at line 65 of file AbstractHmmTransitionMatrix.h.
References bpp::AbstractHmmTransitionMatrix::sample().
Referenced by AutoCorrelationTransitionMatrix(), fireParameterChanged(), bpp::FullHmmTransitionMatrix::fireParameterChanged(), bpp::FullHmmTransitionMatrix::FullHmmTransitionMatrix(), bpp::FullHmmTransitionMatrix::getEquilibriumFrequencies(), getPij(), and Pij().
|
inlineinherited |
Definition at line 48 of file AbstractParametrizable.h.
References bpp::ParameterList::getParameter().
Referenced by bpp::AbstractParameterAliasable::AbstractParameterAliasable(), bpp::AbstractParameterAliasable::operator=(), and bpp::AbstractParameterAliasable::unaliasParameters().
|
inlineprotectedinherited |
Definition at line 211 of file AbstractParametrizable.h.
References bpp::ParameterList::getParameter().
|
inlineprotectedinherited |
Definition at line 216 of file AbstractParametrizable.h.
References bpp::ParameterList::getParameter().
|
inlineprotectedinherited |
name | The name of the parameter. |
ParameterNotFoundException | If no parameter with that name is found in the list. |
Definition at line 164 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::hasParameter(), and bpp::ParameterList::parameter().
Referenced by bpp::AbstractParameterAliasable::aliasParameters(), bpp::AbstractParametrizable::getParameterWithNamespace_(), bpp::AbstractParametrizable::removeConstraint(), bpp::ConstantDistribution::restrictToConstraint(), bpp::TruncatedExponentialDiscreteDistribution::restrictToConstraint(), bpp::InvariantMixedDiscreteDistribution::restrictToConstraint(), bpp::SimpleDiscreteDistribution::restrictToConstraint(), bpp::AbstractParametrizable::setConstraint(), and bpp::AbstractParameterAliasable::unaliasParameters().
|
inlineprotectedinherited |
Definition at line 190 of file AbstractParametrizable.h.
References bpp::ParameterList::size().
|
inlineprotectedinherited |
Definition at line 197 of file AbstractParametrizable.h.
References bpp::ParameterList::size().
|
overridevirtualinherited |
Resolves a parameter name according to the current namespace.
Implements bpp::Parametrizable.
Definition at line 28 of file AbstractParametrizable.cpp.
References bpp::TextTools::startsWith().
Referenced by bpp::AbstractParameterAliasable::AbstractParameterAliasable(), bpp::AbstractParametrizable::getNamespace(), and bpp::AbstractParameterAliasable::operator=().
|
pure virtualinherited |
Resolves a parameter name according to the current namespace.
Implemented in bpp::FunctionWrapper, bpp::ParametrizableAdapter, and bpp::AbstractParametrizable.
Referenced by bpp::BppODiscreteDistributionFormat::readDiscreteDistribution(), bpp::BppOParametrizableFormat::write(), and bpp::Parametrizable::~Parametrizable().
|
inlineoverridevirtualinherited |
Get all parameters available.
Implements bpp::Parametrizable.
Definition at line 41 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::parameters_.
Referenced by bpp::AbstractParameterAliasable::aliasParameters(), bpp::FullHmmTransitionMatrix::FullHmmTransitionMatrix(), bpp::MixtureOfDiscreteDistributions::MixtureOfDiscreteDistributions(), and bpp::ParametrizableCollection< N >::removeObject().
|
pure virtualinherited |
Get all parameters available.
Implemented in bpp::FunctionWrapper, bpp::ParametrizableAdapter, bpp::DirectionFunction, and bpp::AbstractParametrizable.
Referenced by bpp::ParameterAliasableAdapter::getIndependentParameters(), bpp::BppODiscreteDistributionFormat::readDiscreteDistribution(), bpp::BppOParametrizableFormat::write(), and bpp::Parametrizable::~Parametrizable().
|
protectedpure virtualinherited |
Get all parameters available.
Implemented in bpp::FunctionWrapper, bpp::AbstractParametrizable, and bpp::DirectionFunction.
Referenced by bpp::Parametrizable::~Parametrizable().
|
inlineoverrideprotectedvirtualinherited |
Get all parameters available.
Implements bpp::Parametrizable.
Definition at line 205 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::parameters_.
Referenced by bpp::AbstractParameterAliasable::AbstractParameterAliasable(), bpp::AbstractParameterAliasable::aliasParameters(), and bpp::AbstractParameterAliasable::operator=().
|
inlineoverridevirtualinherited |
Get the value for parameter of name 'name'.
name | The name of the parameter. |
Implements bpp::Parametrizable.
Definition at line 53 of file AbstractParametrizable.h.
References bpp::Parameter::getValue(), and bpp::AbstractParametrizable::parameter().
Referenced by bpp::DirichletDiscreteDistribution::applyParameters(), bpp::ConstantDistribution::fireParameterChanged(), bpp::GaussianDiscreteDistribution::fireParameterChanged(), bpp::BetaDiscreteDistribution::fireParameterChanged(), bpp::ExponentialDiscreteDistribution::fireParameterChanged(), bpp::InvariantMixedDiscreteDistribution::fireParameterChanged(), bpp::GammaDiscreteDistribution::fireParameterChanged(), fireParameterChanged(), bpp::TruncatedExponentialDiscreteDistribution::fireParameterChanged(), bpp::SimpleDiscreteDistribution::fireParameterChanged(), bpp::MixtureOfDiscreteDistributions::fireParameterChanged(), bpp::Simplex::fireParameterChanged(), bpp::ExponentialDiscreteDistribution::randC(), bpp::BetaDiscreteDistribution::randC(), bpp::GammaDiscreteDistribution::randC(), bpp::TruncatedExponentialDiscreteDistribution::randC(), and bpp::ConstantDistribution::restrictToConstraint().
|
pure virtualinherited |
Get the value for parameter of name 'name'.
name | The name of the parameter. |
Implemented in bpp::FunctionWrapper, bpp::ParametrizableAdapter, and bpp::AbstractParametrizable.
Referenced by bpp::BppODiscreteDistributionFormat::readDiscreteDistribution(), and bpp::Parametrizable::~Parametrizable().
|
inlineprotectedinherited |
name | The name of the parameter, including its namespace. |
ParameterNotFoundException | If no parameter with that name is found in the list. |
Definition at line 176 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::getParameter_().
|
inlineprotectedinherited |
name | The name of the parameter, including its namespace. |
ParameterNotFoundException | If no parameter with that name is found in the list. |
Definition at line 185 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::parameter().
|
overridevirtual |
Get all transition probabilities as a matrix.
Implements bpp::HmmTransitionMatrix.
Definition at line 50 of file AutoCorrelationTransitionMatrix.cpp.
References bpp::AbstractHmmTransitionMatrix::getNumberOfStates(), bpp::AbstractHmmTransitionMatrix::pij_, bpp::AbstractHmmTransitionMatrix::upToDate_, and vAutocorrel_.
Referenced by Pij().
|
pure virtualinherited |
Tell if there is a parameter with specified name.
name | The name of the parameter to look for. |
Implemented in bpp::FunctionWrapper, bpp::ParametrizableAdapter, and bpp::AbstractParametrizable.
Referenced by bpp::Parametrizable::~Parametrizable().
|
inlineoverridevirtualinherited |
Tell if there is a parameter with specified name.
name | The name of the parameter to look for. |
Implements bpp::Parametrizable.
Definition at line 39 of file AbstractParametrizable.h.
References bpp::ParameterList::hasParameter().
Referenced by bpp::AbstractParameterAliasable::aliasParameters(), bpp::GammaDiscreteDistribution::fireParameterChanged(), bpp::AbstractParametrizable::getParameter_(), and bpp::AbstractParameterAliasable::unaliasParameters().
|
inlinevirtualinherited |
Implements bpp::HmmTransitionMatrix.
Definition at line 50 of file AbstractHmmTransitionMatrix.h.
References bpp::AbstractHmmTransitionMatrix::alph_, and bpp::AbstractHmmTransitionMatrix::setHmmStateAlphabet().
Referenced by bpp::AbstractHmmTransitionMatrix::sample().
|
inlineprotectedvirtualinherited |
Reimplemented in bpp::AbstractParameterAliasable.
Definition at line 132 of file AbstractParametrizable.h.
References bpp::ParameterList::includeParameters().
Referenced by bpp::AbstractParameterAliasable::includeParameters_().
|
inlineoverridevirtualinherited |
Update the parameters from parameters.
Only common parameters with parameters will be updated.
parameters | A list of parameters. |
ConstraintException | If a value in parameters does not match the constraint in the corresponding parameter in the list. |
Implements bpp::Parametrizable.
Definition at line 76 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::fireParameterChanged(), bpp::ParameterList::matchParametersValues(), and bpp::ParameterList::shareSubList().
Referenced by bpp::AbstractParameterAliasable::aliasParameters(), bpp::Simplex::setFrequencies(), bpp::ReparametrizationFunctionWrapper::setParameters(), and bpp::FullHmmTransitionMatrix::setTransitionProbabilities().
|
pure virtualinherited |
Update the parameters from parameters.
Only common parameters with parameters will be updated.
parameters | A list of parameters. |
ConstraintException | If a value in parameters does not match the constraint in the corresponding parameter in the list. |
Implemented in bpp::InfinityFunctionWrapper, bpp::FunctionWrapper, bpp::AbstractNumericalDerivative, bpp::ParametrizableAdapter, and bpp::AbstractParametrizable.
Referenced by bpp::BppODiscreteDistributionFormat::initialize_(), bpp::TestFunction::setParameters(), and bpp::Parametrizable::~Parametrizable().
AutoCorrelationTransitionMatrix & AutoCorrelationTransitionMatrix::operator= | ( | const AutoCorrelationTransitionMatrix & | hptm | ) |
Definition at line 40 of file AutoCorrelationTransitionMatrix.cpp.
References bpp::AbstractHmmTransitionMatrix::operator=(), and vAutocorrel_.
|
inlineoverridevirtualinherited |
Get the parameter with specified name.
name | The name of the parameter to look for. |
ParameterNotFoundException | if no parameter with this name is found. |
Implements bpp::Parametrizable.
Definition at line 43 of file AbstractParametrizable.h.
References bpp::ParameterList::parameter().
Referenced by bpp::AbstractParameterAliasable::getAliasedParameters(), bpp::ReparametrizationDerivableFirstOrderWrapper::getFirstOrderDerivative(), bpp::AbstractParameterAliasable::getFromParameters(), bpp::AbstractParametrizable::getParameterValue(), bpp::AbstractParametrizable::getParameterWithNamespace_(), and bpp::ReparametrizationDerivableSecondOrderWrapper::getSecondOrderDerivative().
|
pure virtualinherited |
Get the parameter with specified name.
name | The name of the parameter to look for. |
ParameterNotFoundException | if no parameter with this name is found. |
Implemented in bpp::FunctionWrapper, bpp::ParametrizableAdapter, and bpp::AbstractParametrizable.
Referenced by bpp::TestFunction::getValue(), and bpp::Parametrizable::~Parametrizable().
|
inlineoverridevirtual |
Get the transition probability between two states.
i | initial state. |
j | final state. |
Implements bpp::HmmTransitionMatrix.
Definition at line 48 of file AutoCorrelationTransitionMatrix.h.
References fireParameterChanged(), getEquilibriumFrequencies(), bpp::AbstractHmmTransitionMatrix::getNumberOfStates(), and getPij().
|
inlineoverridevirtualinherited |
Remove the constraint associated with one parameter, if any.
name | The name of the parameter to look for. |
ParameterNotFoundException | if no parameter with this name is found. |
Implements bpp::Parametrizable.
Definition at line 85 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::getParameter_(), and bpp::Parameter::removeConstraint().
|
pure virtualinherited |
Remove the constraint associated with one parameter, if any.
name | The name of the parameter to look for. |
ParameterNotFoundException | if no parameter with this name is found. |
Implemented in bpp::FunctionWrapper, bpp::ParametrizableAdapter, and bpp::AbstractParametrizable.
Referenced by bpp::Parametrizable::~Parametrizable().
|
inlineprotectedinherited |
Definition at line 154 of file AbstractParametrizable.h.
References bpp::ParameterList::reset().
Referenced by bpp::AbstractParameterAliasable::resetParameters_().
|
inherited |
sampling of a sequence of states. Starting point is sampled from the equilibrium distribution.
size | the length of the sequence |
Definition at line 48 of file AbstractHmmTransitionMatrix.cpp.
References bpp::AbstractHmmTransitionMatrix::eqFreq_, bpp::HmmStateAlphabet::getNumberOfStates(), bpp::HmmTransitionMatrix::getPij(), bpp::RowMatrix< Scalar >::getRow(), bpp::RandomTools::giveRandomNumberBetweenZeroAndEntry(), bpp::AbstractHmmTransitionMatrix::hmmStateAlphabet(), and bpp::AbstractHmmTransitionMatrix::pij_.
Referenced by bpp::AbstractHmmTransitionMatrix::getNumberOfStates().
|
inlineoverridevirtualinherited |
Set the parameters values to be equals to those of parameters.
The list must contain exactly the same parameters (ie same names) than the parameters available.
parameters | A list with all parameters. |
ParameterNotFoundException | If a some parameter in the list is not in params. |
ConstraintException | If a value in parameters does not match the constraint in the corresponding parameter in the list. |
Implements bpp::Parametrizable.
Definition at line 58 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::fireParameterChanged(), and bpp::ParameterList::setAllParametersValues().
|
pure virtualinherited |
Set the parameters values to be equals to those of parameters.
The list must contain exactly the same parameters (ie same names) than the parameters available.
parameters | A list with all parameters. |
ParameterNotFoundException | If a some parameter in the list is not in params. |
ConstraintException | If a value in parameters does not match the constraint in the corresponding parameter in the list. |
Implemented in bpp::InfinityFunctionWrapper, bpp::FunctionWrapper, bpp::AbstractNumericalDerivative, bpp::ParametrizableAdapter, and bpp::AbstractParametrizable.
Referenced by bpp::Parametrizable::~Parametrizable().
|
inlineoverridevirtualinherited |
Set/Change the constraint associated with one parameter.
name | The name of the parameter to look for. |
constraint | A pointer to the constraint (may be null) |
ParameterNotFoundException | if no parameter with this name is found. |
Implements bpp::Parametrizable.
Definition at line 90 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::getParameter_(), and bpp::Parameter::setConstraint().
Referenced by bpp::SimpleDiscreteDistribution::restrictToConstraint().
|
pure virtualinherited |
Set/Change the constraint associated with one parameter.
name | The name of the parameter to look for. |
constraint | A pointer to the constraint (may be null) |
ParameterNotFoundException | if no parameter with this name is found. |
Implemented in bpp::FunctionWrapper, bpp::ParametrizableAdapter, and bpp::AbstractParametrizable.
Referenced by bpp::Parametrizable::~Parametrizable().
|
virtualinherited |
Set the new hidden state alphabet.
stateAlphabet | The new state alphabet |
UnvalidStateAlphabetException | if the new alphabet is uncorrect (for instance is NULL pointer). |
Implements bpp::HmmTransitionMatrix.
Definition at line 40 of file AbstractHmmTransitionMatrix.cpp.
References bpp::AbstractHmmTransitionMatrix::alph_.
Referenced by bpp::AbstractHmmTransitionMatrix::hmmStateAlphabet().
|
overridevirtualinherited |
Set the namespace for the parameter names.
prefix | The 'namespace', that is a prefix to add to all parameter names. If parameter names are already prefixed, the new prefix will be used instead. |
Implements bpp::Parametrizable.
Reimplemented in bpp::LogsumHmmLikelihood, bpp::RescaledHmmLikelihood, bpp::LowMemoryRescaledHmmLikelihood, bpp::MixtureOfDiscreteDistributions, and bpp::InvariantMixedDiscreteDistribution.
Definition at line 10 of file AbstractParametrizable.cpp.
References bpp::TextTools::startsWith().
Referenced by bpp::AbstractParametrizable::getNumberOfParameters(), bpp::AbstractParameterAliasable::setNamespace(), bpp::LowMemoryRescaledHmmLikelihood::setNamespace(), bpp::LogsumHmmLikelihood::setNamespace(), and bpp::RescaledHmmLikelihood::setNamespace().
|
pure virtualinherited |
Set the namespace for the parameter names.
prefix | The 'namespace', that is a prefix to add to all parameter names. If parameter names are already prefixed, the new prefix will be used instead. |
Implemented in bpp::FunctionWrapper, bpp::ParametrizableAdapter, bpp::LogsumHmmLikelihood, bpp::RescaledHmmLikelihood, bpp::LowMemoryRescaledHmmLikelihood, bpp::AbstractParameterAliasable, bpp::MixtureOfDiscreteDistributions, bpp::AbstractParametrizable, and bpp::InvariantMixedDiscreteDistribution.
Referenced by bpp::Parametrizable::~Parametrizable().
|
inlineoverridevirtualinherited |
Update the parameters from parameters.
parameters must be a subset of all parameters available.
parameters | A list containing all parameters to update. |
ParameterNotFoundException | If a some parameter in params is not in the list. |
ConstraintException | If a value in parameters does not match the constraint in the corresponding parameter in the list. |
Implements bpp::Parametrizable.
Definition at line 70 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::fireParameterChanged(), and bpp::ParameterList::setParametersValues().
Referenced by bpp::LowMemoryRescaledHmmLikelihood::setParameters(), bpp::LogsumHmmLikelihood::setParameters(), and bpp::RescaledHmmLikelihood::setParameters().
|
pure virtualinherited |
Update the parameters from parameters.
parameters must be a subset of all parameters available.
parameters | A list containing all parameters to update. |
ParameterNotFoundException | If a some parameter in params is not in the list. |
ConstraintException | If a value in parameters does not match the constraint in the corresponding parameter in the list. |
Implemented in bpp::InfinityFunctionWrapper, bpp::FunctionWrapper, bpp::AbstractNumericalDerivative, bpp::ParametrizableAdapter, and bpp::AbstractParametrizable.
Referenced by bpp::Parametrizable::~Parametrizable().
|
inlineoverridevirtualinherited |
Set the value of parameter with name name to be equal to value.
name | the name of the parameter to set. |
value | The value of the parameter. |
ParameterNotFoundException | If no parameter in the list has the name name. |
ConstraintException | If value does not match the constraint associated to parameter name. |
Implements bpp::Parametrizable.
Definition at line 64 of file AbstractParametrizable.h.
References bpp::ParameterList::createSubList(), bpp::AbstractParametrizable::fireParameterChanged(), and bpp::ParameterList::setParameterValue().
|
pure virtualinherited |
Set the value of parameter with name name to be equal to value.
name | the name of the parameter to set. |
value | The value of the parameter. |
ParameterNotFoundException | If no parameter in the list has the name name. |
ConstraintException | If value does not match the constraint associated to parameter name. |
Implemented in bpp::InfinityFunctionWrapper, bpp::FunctionWrapper, bpp::AbstractNumericalDerivative, bpp::ParametrizableAdapter, and bpp::AbstractParametrizable.
Referenced by bpp::Parametrizable::~Parametrizable().
|
inlineprotectedvirtualinherited |
Reimplemented in bpp::AbstractParameterAliasable.
Definition at line 122 of file AbstractParametrizable.h.
References bpp::ParameterList::shareParameter().
Referenced by bpp::AbstractParameterAliasable::shareParameter_().
|
inlineprotectedvirtualinherited |
Reimplemented in bpp::AbstractParameterAliasable.
Definition at line 127 of file AbstractParametrizable.h.
References bpp::ParameterList::shareParameters().
Referenced by bpp::AbstractParameterAliasable::shareParameters_().
|
mutableprotectedinherited |
|
mutableprotectedinherited |
Definition at line 26 of file AbstractHmmTransitionMatrix.h.
Referenced by bpp::FullHmmTransitionMatrix::getEquilibriumFrequencies(), getPij(), bpp::FullHmmTransitionMatrix::getPij(), bpp::AbstractHmmTransitionMatrix::operator=(), and bpp::AbstractHmmTransitionMatrix::sample().
|
mutableprotectedinherited |
Definition at line 26 of file AbstractHmmTransitionMatrix.h.
Referenced by bpp::FullHmmTransitionMatrix::getEquilibriumFrequencies(), and bpp::AbstractHmmTransitionMatrix::operator=().
|
mutableprotectedinherited |
Definition at line 30 of file AbstractHmmTransitionMatrix.h.
Referenced by fireParameterChanged(), bpp::FullHmmTransitionMatrix::fireParameterChanged(), bpp::FullHmmTransitionMatrix::getEquilibriumFrequencies(), getPij(), bpp::FullHmmTransitionMatrix::getPij(), and bpp::AbstractHmmTransitionMatrix::operator=().
|
private |
Definition at line 30 of file AutoCorrelationTransitionMatrix.h.
Referenced by AutoCorrelationTransitionMatrix(), fireParameterChanged(), getPij(), and operator=().