bpp-core  2.2.0
bpp::AutoCorrelationTransitionMatrix Class Referenceabstract

Describe the auto-correlation probabilities inside hidden states of a Hidden Markov Model. More...

#include <Bpp/Numeric/Hmm/AutoCorrelationTransitionMatrix.h>

+ Inheritance diagram for bpp::AutoCorrelationTransitionMatrix:
+ Collaboration diagram for bpp::AutoCorrelationTransitionMatrix:

Public Member Functions

 AutoCorrelationTransitionMatrix (const HmmStateAlphabet *alph, const std::string &prefix="")
 
 AutoCorrelationTransitionMatrix (const AutoCorrelationTransitionMatrix &hptm)
 
AutoCorrelationTransitionMatrixoperator= (const AutoCorrelationTransitionMatrix &hptm)
 
AutoCorrelationTransitionMatrixclone () const
 Create a copy of this object and send a pointer to it. More...
 
double Pij (size_t i, size_t j) const
 Get the transition probability between two states. More...
 
const Matrix< double > & getPij () const
 Get all transition probabilities as a matrix. More...
 
const std::vector< double > & getEquilibriumFrequencies () const
 
void fireParameterChanged (const ParameterList &parameters)
 Notify the class when one or several parameters have changed. More...
 
const HmmStateAlphabetgetHmmStateAlphabet () const
 
void setHmmStateAlphabet (const HmmStateAlphabet *stateAlphabet) throw (HmmUnvalidAlphabetException)
 Set the new hidden state alphabet. More...
 
size_t getNumberOfStates () const
 
virtual bool hasParameter (const std::string &name) const =0
 Tell if there is a parameter with specified name. More...
 
virtual const ParameterListgetParameters () const =0
 Get all parameters available. More...
 
virtual const ParametergetParameter (const std::string &name) const =0 throw (ParameterNotFoundException)
 Get the parameter with specified name. More...
 
virtual double getParameterValue (const std::string &name) const =0 throw (ParameterNotFoundException)
 Get the value for parameter of name 'name'. More...
 
virtual void setAllParametersValues (const ParameterList &parameters)=0 throw (ParameterNotFoundException, ConstraintException)
 Set the parameters values to be equals to those of parameters. More...
 
virtual void setParameterValue (const std::string &name, double value)=0 throw (ParameterNotFoundException, ConstraintException)
 Set the value of parameter with name name to be equal to value. More...
 
virtual void setParametersValues (const ParameterList &parameters)=0 throw (ParameterNotFoundException, ConstraintException)
 Update the parameters from parameters. More...
 
virtual bool matchParametersValues (const ParameterList &parameters)=0 throw (ConstraintException)
 Update the parameters from parameters. 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
 Tell if there is a parameter with specified name. More...
 
const ParameterListgetParameters () const
 Get all parameters available. More...
 
const ParametergetParameter (const std::string &name) const throw (ParameterNotFoundException)
 Get the parameter with specified name. More...
 
double getParameterValue (const std::string &name) const throw (ParameterNotFoundException)
 Get the value for parameter of name 'name'. More...
 
void setAllParametersValues (const ParameterList &parameters) throw (ParameterNotFoundException, ConstraintException)
 Set the parameters values to be equals to those of parameters. More...
 
void setParameterValue (const std::string &name, double value) throw (ParameterNotFoundException, ConstraintException)
 Set the value of parameter with name name to be equal to value. More...
 
void setParametersValues (const ParameterList &parameters) throw (ParameterNotFoundException, ConstraintException)
 Update the parameters from parameters. More...
 
bool matchParametersValues (const ParameterList &parameters) throw (ConstraintException)
 Update the parameters from parameters. More...
 
size_t getNumberOfParameters () const
 Get the number of parameters. More...
 
void setNamespace (const std::string &prefix)
 Set the namespace for the parameter names. More...
 
std::string getNamespace () const
 
std::string getParameterNameWithoutNamespace (const std::string &name) const
 Resolves a parameter name according to the current namespace. More...
 

Protected Member Functions

void addParameter_ (Parameter *parameter)
 
void addParameters_ (const ParameterList &parameters)
 
void deleteParameter_ (size_t index) throw (IndexOutOfBoundsException)
 
void deleteParameter_ (std::string &name)
 
void deleteParameters_ (const std::vector< std::string > &names)
 
void resetParameters_ ()
 
ParametergetParameter_ (const std::string &name) throw (ParameterNotFoundException)
 
ParametergetParameter_ (size_t index) throw (IndexOutOfBoundsException)
 
const ParametergetParameter_ (size_t index) const throw (IndexOutOfBoundsException)
 
ParametergetParameterWithNamespace_ (const std::string &name) throw (ParameterNotFoundException)
 
const ParametergetParameterWithNamespace_ (const std::string &name) const throw (ParameterNotFoundException)
 
ParameterListgetParameters_ ()
 

Protected Attributes

RowMatrix< double > pij_
 
RowMatrix< double > tmpmat_
 
Vdouble eqFreq_
 
bool upToDate_
 

Private Attributes

std::vector< double > vAutocorrel_
 

Detailed Description

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 62 of file AutoCorrelationTransitionMatrix.h.

Constructor & Destructor Documentation

◆ AutoCorrelationTransitionMatrix() [1/2]

AutoCorrelationTransitionMatrix::AutoCorrelationTransitionMatrix ( const HmmStateAlphabet alph,
const std::string &  prefix = "" 
)

◆ AutoCorrelationTransitionMatrix() [2/2]

AutoCorrelationTransitionMatrix::AutoCorrelationTransitionMatrix ( const AutoCorrelationTransitionMatrix hptm)

Definition at line 68 of file AutoCorrelationTransitionMatrix.cpp.

Member Function Documentation

◆ addParameter_()

◆ addParameters_()

void bpp::AbstractParametrizable::addParameters_ ( const ParameterList parameters)
inlineprotectedinherited

◆ clone()

AutoCorrelationTransitionMatrix* bpp::AutoCorrelationTransitionMatrix::clone ( ) const
inlinevirtual

Create a copy of this object and send a pointer to it.

Returns
A pointer toward the copy object.

Implements bpp::Clonable.

Definition at line 77 of file AutoCorrelationTransitionMatrix.h.

References AutoCorrelationTransitionMatrix().

◆ deleteParameter_() [1/2]

void bpp::AbstractParametrizable::deleteParameter_ ( size_t  index)
throw (IndexOutOfBoundsException
)
inlineprotectedinherited

◆ deleteParameter_() [2/2]

void bpp::AbstractParametrizable::deleteParameter_ ( std::string &  name)
inlineprotectedinherited

◆ deleteParameters_()

void bpp::AbstractParametrizable::deleteParameters_ ( const std::vector< std::string > &  names)
inlineprotectedinherited

◆ fireParameterChanged()

void AutoCorrelationTransitionMatrix::fireParameterChanged ( const ParameterList parameters)
virtual

Notify the class when one or several parameters have changed.

Parameters
parametersA ParameterList object with parameters that changed.

Implements bpp::AbstractParametrizable.

Definition at line 103 of file AutoCorrelationTransitionMatrix.cpp.

References bpp::AbstractHmmTransitionMatrix::getNumberOfStates(), bpp::AbstractParametrizable::getParameterValue(), bpp::TextTools::toString(), bpp::AbstractHmmTransitionMatrix::upToDate_, and vAutocorrel_.

◆ getEquilibriumFrequencies()

const std::vector< double > & AutoCorrelationTransitionMatrix::getEquilibriumFrequencies ( ) const
virtual
Returns
The vector of equilibrium frequencies of the Markov chain described by the matrix.

Implements bpp::HmmTransitionMatrix.

Definition at line 98 of file AutoCorrelationTransitionMatrix.cpp.

References bpp::AbstractHmmTransitionMatrix::eqFreq_.

◆ getHmmStateAlphabet()

const HmmStateAlphabet* bpp::AbstractHmmTransitionMatrix::getHmmStateAlphabet ( ) const
inlinevirtualinherited
Returns
The hidden alphabet associated to this model.

Implements bpp::HmmTransitionMatrix.

Definition at line 81 of file AbstractHmmTransitionMatrix.h.

References bpp::AbstractHmmTransitionMatrix::alph_.

◆ getNamespace() [1/2]

std::string bpp::AbstractParametrizable::getNamespace ( ) const
inlinevirtualinherited

◆ getNamespace() [2/2]

virtual std::string bpp::Parametrizable::getNamespace ( ) const
pure virtualinherited
Returns
The current namespace used. This is an empty string if no namespace is currently defined.

Implemented in bpp::FunctionWrapper, bpp::ParametrizableAdapter, and bpp::AbstractParametrizable.

Referenced by bpp::FunctionWrapper::getNamespace().

◆ getNumberOfParameters() [1/2]

size_t bpp::AbstractParametrizable::getNumberOfParameters ( ) const
inlinevirtualinherited

◆ getNumberOfParameters() [2/2]

virtual size_t bpp::Parametrizable::getNumberOfParameters ( ) const
pure virtualinherited

Get the number of parameters.

See also
getNumberOfIndependentParameters If some parameters are aliased.
Returns
The number of parameters.

Implemented in bpp::FunctionWrapper, bpp::ParametrizableAdapter, bpp::AbstractParametrizable, and bpp::DirectionFunction.

Referenced by bpp::FunctionWrapper::getNumberOfParameters(), and bpp::BppODiscreteDistributionFormat::write().

◆ getNumberOfStates()

◆ getParameter() [1/2]

const Parameter& bpp::AbstractParametrizable::getParameter ( const std::string &  name) const
throw (ParameterNotFoundException
)
inlinevirtualinherited

◆ getParameter() [2/2]

virtual const Parameter& bpp::Parametrizable::getParameter ( const std::string &  name) const
throw (ParameterNotFoundException
)
pure virtualinherited

Get the parameter with specified name.

Parameters
nameThe name of the parameter to look for.
Returns
The parameter with given name.
Exceptions
ParameterNotFoundExceptionif no parameter with this name is found.

Implemented in bpp::FunctionWrapper, bpp::ParametrizableAdapter, and bpp::AbstractParametrizable.

Referenced by bpp::FunctionWrapper::getParameter().

◆ getParameter_() [1/3]

◆ getParameter_() [2/3]

Parameter& bpp::AbstractParametrizable::getParameter_ ( size_t  index)
throw (IndexOutOfBoundsException
)
inlineprotectedinherited

◆ getParameter_() [3/3]

const Parameter& bpp::AbstractParametrizable::getParameter_ ( size_t  index) const
throw (IndexOutOfBoundsException
)
inlineprotectedinherited

◆ getParameterNameWithoutNamespace() [1/2]

std::string AbstractParametrizable::getParameterNameWithoutNamespace ( const std::string &  name) const
virtualinherited

Resolves a parameter name according to the current namespace.

Returns
The parameter name without the namespace prefix, if any.

Implements bpp::Parametrizable.

Definition at line 63 of file AbstractParametrizable.cpp.

References bpp::TextTools::startsWith().

◆ getParameterNameWithoutNamespace() [2/2]

virtual std::string bpp::Parametrizable::getParameterNameWithoutNamespace ( const std::string &  name) const
pure virtualinherited

Resolves a parameter name according to the current namespace.

Returns
The parameter name without the namespace prefix, if any.

Implemented in bpp::FunctionWrapper, bpp::ParametrizableAdapter, and bpp::AbstractParametrizable.

Referenced by bpp::FunctionWrapper::getParameterNameWithoutNamespace(), bpp::BppODiscreteDistributionFormat::read(), and bpp::BppOParametrizableFormat::write().

◆ getParameters() [1/2]

const ParameterList& bpp::AbstractParametrizable::getParameters ( ) const
inlinevirtualinherited

Get all parameters available.

See also
getIndependentParameters if some parameters are aliased.
Returns
A list with all parameters available.

Implements bpp::Parametrizable.

Definition at line 77 of file AbstractParametrizable.h.

References bpp::AbstractParametrizable::parameters_.

Referenced by bpp::AbstractParameterAliasable::aliasParameters(), bpp::AbstractParameterAliasable::fireParameterChanged(), bpp::MixtureOfDiscreteDistributions::MixtureOfDiscreteDistributions(), and bpp::ParametrizableCollection< N >::removeObject().

◆ getParameters() [2/2]

virtual const ParameterList& bpp::Parametrizable::getParameters ( ) const
pure virtualinherited

◆ getParameters_()

ParameterList& bpp::AbstractParametrizable::getParameters_ ( )
inlineprotectedinherited

◆ getParameterValue() [1/2]

◆ getParameterValue() [2/2]

virtual double bpp::Parametrizable::getParameterValue ( const std::string &  name) const
throw (ParameterNotFoundException
)
pure virtualinherited

Get the value for parameter of name 'name'.

Parameters
nameThe name of the parameter.
Returns
the value of parameter name.

Implemented in bpp::FunctionWrapper, bpp::ParametrizableAdapter, and bpp::AbstractParametrizable.

Referenced by bpp::FunctionWrapper::getParameterValue(), and bpp::BppODiscreteDistributionFormat::read().

◆ getParameterWithNamespace_() [1/2]

Parameter& bpp::AbstractParametrizable::getParameterWithNamespace_ ( const std::string &  name)
throw (ParameterNotFoundException
)
inlineprotectedinherited
Parameters
nameThe name of the parameter, including its namespace.
Returns
A reference toward the corresponding parameter.
Exceptions
ParameterNotFoundExceptionIf no parameter with that name is found in the list.

Definition at line 185 of file AbstractParametrizable.h.

References bpp::AbstractParametrizable::getParameter_().

◆ getParameterWithNamespace_() [2/2]

const Parameter& bpp::AbstractParametrizable::getParameterWithNamespace_ ( const std::string &  name) const
throw (ParameterNotFoundException
)
inlineprotectedinherited
Parameters
nameThe name of the parameter, including its namespace.
Returns
A reference toward the corresponding parameter.
Exceptions
ParameterNotFoundExceptionIf no parameter with that name is found in the list.

Definition at line 194 of file AbstractParametrizable.h.

References bpp::AbstractParametrizable::getParameter().

◆ getPij()

const Matrix< double > & AutoCorrelationTransitionMatrix::getPij ( ) const
virtual

Get all transition probabilities as a matrix.

Returns
A n*n matrix will all transition probabilities (n being the number of hidden states).

Implements bpp::HmmTransitionMatrix.

Definition at line 85 of file AutoCorrelationTransitionMatrix.cpp.

References bpp::AbstractHmmTransitionMatrix::getNumberOfStates(), bpp::AbstractHmmTransitionMatrix::pij_, bpp::AbstractHmmTransitionMatrix::upToDate_, and vAutocorrel_.

◆ hasParameter() [1/2]

virtual bool bpp::Parametrizable::hasParameter ( const std::string &  name) const
pure virtualinherited

Tell if there is a parameter with specified name.

Parameters
nameThe name of the parameter to look for.
Returns
y/n.

Implemented in bpp::FunctionWrapper, bpp::ParametrizableAdapter, and bpp::AbstractParametrizable.

Referenced by bpp::FunctionWrapper::hasParameter().

◆ hasParameter() [2/2]

bool bpp::AbstractParametrizable::hasParameter ( const std::string &  name) const
inlinevirtualinherited

Tell if there is a parameter with specified name.

Parameters
nameThe name of the parameter to look for.
Returns
y/n.

Implements bpp::Parametrizable.

Definition at line 75 of file AbstractParametrizable.h.

References bpp::ParameterList::hasParameter(), bpp::AbstractParametrizable::parameters_, and bpp::AbstractParametrizable::prefix_.

◆ matchParametersValues() [1/2]

bool bpp::AbstractParametrizable::matchParametersValues ( const ParameterList parameters)
throw (ConstraintException
)
inlinevirtualinherited

Update the parameters from parameters.

Only common parameters with parameters will be updated.

Parameters
parametersA list of parameters.
Returns
True if at least one parameter value has been changed.
Exceptions
ConstraintExceptionIf a value in parameters does not match the constraint in the corresponding parameter in the list.

Implements bpp::Parametrizable.

Definition at line 111 of file AbstractParametrizable.h.

References bpp::AbstractParametrizable::fireParameterChanged(), bpp::ParameterList::matchParametersValues(), and bpp::AbstractParametrizable::parameters_.

Referenced by bpp::AbstractParameterAliasable::aliasParameters(), bpp::Simplex::setFrequencies(), bpp::ReparametrizationFunctionWrapper::setParameters(), bpp::TestFunction::setParameters(), and bpp::FullHmmTransitionMatrix::setTransitionProbabilities().

◆ matchParametersValues() [2/2]

virtual bool bpp::Parametrizable::matchParametersValues ( const ParameterList parameters)
throw (ConstraintException
)
pure virtualinherited

Update the parameters from parameters.

Only common parameters with parameters will be updated.

Parameters
parametersA list of parameters.
Returns
True if at least one parameter value has been changed.
Exceptions
ConstraintExceptionIf 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::InvariantMixedDiscreteDistribution::fireParameterChanged(), bpp::AbstractNumericalDerivative::matchParametersValues(), bpp::FunctionWrapper::matchParametersValues(), and bpp::InfinityFunctionWrapper::matchParametersValues().

◆ operator=()

AutoCorrelationTransitionMatrix & AutoCorrelationTransitionMatrix::operator= ( const AutoCorrelationTransitionMatrix hptm)

◆ Pij()

double bpp::AutoCorrelationTransitionMatrix::Pij ( size_t  i,
size_t  j 
) const
inlinevirtual

Get the transition probability between two states.

Parameters
iinitial state.
jfinal state.
Returns
the transition probability between the two states.

Implements bpp::HmmTransitionMatrix.

Definition at line 86 of file AutoCorrelationTransitionMatrix.h.

References bpp::AbstractHmmTransitionMatrix::getNumberOfStates(), and vAutocorrel_.

◆ resetParameters_()

void bpp::AbstractParametrizable::resetParameters_ ( )
inlineprotectedinherited

◆ setAllParametersValues() [1/2]

void bpp::AbstractParametrizable::setAllParametersValues ( const ParameterList parameters)
throw (ParameterNotFoundException,
ConstraintException
)
inlinevirtualinherited

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
parametersA list with all parameters.
Exceptions
ParameterNotFoundExceptionIf a some parameter in the list is not in params.
ConstraintExceptionIf a value in parameters does not match the constraint in the corresponding parameter in the list.

Implements bpp::Parametrizable.

Definition at line 90 of file AbstractParametrizable.h.

References bpp::AbstractParametrizable::fireParameterChanged(), bpp::AbstractParametrizable::parameters_, and bpp::ParameterList::setAllParametersValues().

◆ setAllParametersValues() [2/2]

virtual void bpp::Parametrizable::setAllParametersValues ( const ParameterList parameters)
throw (ParameterNotFoundException,
ConstraintException
)
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
parametersA list with all parameters.
Exceptions
ParameterNotFoundExceptionIf a some parameter in the list is not in params.
ConstraintExceptionIf 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::AbstractNumericalDerivative::setAllParametersValues(), bpp::FunctionWrapper::setAllParametersValues(), and bpp::InfinityFunctionWrapper::setAllParametersValues().

◆ setHmmStateAlphabet()

void AbstractHmmTransitionMatrix::setHmmStateAlphabet ( const HmmStateAlphabet stateAlphabet)
throw (HmmUnvalidAlphabetException
)
virtualinherited

Set the new hidden state alphabet.

Parameters
stateAlphabetThe new state alphabet
Exceptions
UnvalidStateAlphabetExceptionif the new alphabet is uncorrect (for instance is NULL pointer).

Implements bpp::HmmTransitionMatrix.

Definition at line 77 of file AbstractHmmTransitionMatrix.cpp.

◆ setNamespace() [1/2]

void AbstractParametrizable::setNamespace ( const std::string &  prefix)
virtualinherited

Set the namespace for the parameter names.

Parameters
prefixThe '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::MixtureOfDiscreteDistributions, and bpp::InvariantMixedDiscreteDistribution.

Definition at line 45 of file AbstractParametrizable.cpp.

References bpp::TextTools::startsWith().

Referenced by bpp::AbstractParameterAliasable::setNamespace().

◆ setNamespace() [2/2]

virtual void bpp::Parametrizable::setNamespace ( const std::string &  prefix)
pure virtualinherited

Set the namespace for the parameter names.

Parameters
prefixThe '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::AbstractParameterAliasable, bpp::MixtureOfDiscreteDistributions, bpp::AbstractParametrizable, and bpp::InvariantMixedDiscreteDistribution.

Referenced by bpp::InvariantMixedDiscreteDistribution::InvariantMixedDiscreteDistribution(), bpp::InvariantMixedDiscreteDistribution::setNamespace(), and bpp::FunctionWrapper::setNamespace().

◆ setParametersValues() [1/2]

void bpp::AbstractParametrizable::setParametersValues ( const ParameterList parameters)
throw (ParameterNotFoundException,
ConstraintException
)
inlinevirtualinherited

Update the parameters from parameters.

parameters must be a subset of all parameters available.

Parameters
parametersA list containing all parameters to update.
Exceptions
ParameterNotFoundExceptionIf a some parameter in params is not in the list.
ConstraintExceptionIf a value in parameters does not match the constraint in the corresponding parameter in the list.

Implements bpp::Parametrizable.

Definition at line 104 of file AbstractParametrizable.h.

References bpp::AbstractParametrizable::fireParameterChanged(), bpp::AbstractParametrizable::parameters_, and bpp::ParameterList::setParametersValues().

Referenced by bpp::LowMemoryRescaledHmmLikelihood::setParameters(), bpp::LogsumHmmLikelihood::setParameters(), and bpp::RescaledHmmLikelihood::setParameters().

◆ setParametersValues() [2/2]

virtual void bpp::Parametrizable::setParametersValues ( const ParameterList parameters)
throw (ParameterNotFoundException,
ConstraintException
)
pure virtualinherited

Update the parameters from parameters.

parameters must be a subset of all parameters available.

Parameters
parametersA list containing all parameters to update.
Exceptions
ParameterNotFoundExceptionIf a some parameter in params is not in the list.
ConstraintExceptionIf 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::AbstractNumericalDerivative::setParametersValues(), bpp::FunctionWrapper::setParametersValues(), and bpp::InfinityFunctionWrapper::setParametersValues().

◆ setParameterValue() [1/2]

void bpp::AbstractParametrizable::setParameterValue ( const std::string &  name,
double  value 
)
throw (ParameterNotFoundException,
ConstraintException
)
inlinevirtualinherited

Set the value of parameter with name name to be equal to value.

Parameters
namethe name of the parameter to set.
valueThe value of the parameter.
Exceptions
ParameterNotFoundExceptionIf no parameter in the list has the name name.
ConstraintExceptionIf value does not match the constraint associated to parameter name.

Implements bpp::Parametrizable.

Definition at line 97 of file AbstractParametrizable.h.

References bpp::AbstractParametrizable::fireParameterChanged(), bpp::AbstractParametrizable::parameters_, bpp::AbstractParametrizable::prefix_, bpp::ParameterList::setParameterValue(), and bpp::ParameterList::subList().

◆ setParameterValue() [2/2]

virtual void bpp::Parametrizable::setParameterValue ( const std::string &  name,
double  value 
)
throw (ParameterNotFoundException,
ConstraintException
)
pure virtualinherited

Set the value of parameter with name name to be equal to value.

Parameters
namethe name of the parameter to set.
valueThe value of the parameter.
Exceptions
ParameterNotFoundExceptionIf no parameter in the list has the name name.
ConstraintExceptionIf 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::AbstractNumericalDerivative::setParameterValue(), bpp::FunctionWrapper::setParameterValue(), and bpp::InfinityFunctionWrapper::setParameterValue().

Member Data Documentation

◆ eqFreq_

◆ pij_

RowMatrix<double> bpp::AbstractHmmTransitionMatrix::pij_
mutableprotectedinherited

◆ tmpmat_

RowMatrix<double> bpp::AbstractHmmTransitionMatrix::tmpmat_
mutableprotectedinherited

◆ upToDate_

◆ vAutocorrel_

std::vector<double> bpp::AutoCorrelationTransitionMatrix::vAutocorrel_
private

The documentation for this class was generated from the following files: