|
bpp-core
2.1.0
|
A partial implementation of the Parametrizable interface. More...
#include <Bpp/Numeric/AbstractParameterAliasable.h>
Inheritance diagram for bpp::AbstractParameterAliasable:
Collaboration diagram for bpp::AbstractParameterAliasable:Public Member Functions | |
| AbstractParameterAliasable (const std::string &prefix) | |
| AbstractParameterAliasable (const AbstractParameterAliasable &ap) | |
| AbstractParameterAliasable & | operator= (const AbstractParameterAliasable &ap) |
| virtual | ~AbstractParameterAliasable () |
| void | setNamespace (const std::string &prefix) |
| Set the namespace for the parameter names. More... | |
| const ParameterList & | getIndependentParameters () const |
| Get the minimal list of parameters to set the model. More... | |
| size_t | getNumberOfIndependentParameters () const |
| Get the number of independent parameters. More... | |
| void | aliasParameters (const std::string &p1, const std::string &p2) throw (ParameterNotFoundException, Exception) |
| Set two parameters as 'aliased'. More... | |
| void | unaliasParameters (const std::string &p1, const std::string &p2) throw (ParameterNotFoundException, Exception) |
| Detach two parameters previously set as 'aliased'. More... | |
| std::vector< std::string > | getAlias (const std::string &name) const |
| void | fireParameterChanged (const ParameterList ¶meters) |
| Notify the class when one or several parameters have changed. More... | |
| bool | hasParameter (const std::string &name) const |
| Tell if there is a parameter with specified name. More... | |
| const ParameterList & | getParameters () const |
| Get all parameters available. More... | |
| const Parameter & | getParameter (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 ¶meters) 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 ¶meters) throw (ParameterNotFoundException, ConstraintException) |
| Update the parameters from parameters. More... | |
| bool | matchParametersValues (const ParameterList ¶meters) throw (ConstraintException) |
| Update the parameters from parameters. More... | |
| size_t | getNumberOfParameters () const |
| Get the number of parameters. More... | |
| std::string | getNamespace () const |
| std::string | getParameterNameWithoutNamespace (const std::string &name) const |
| Resolves a parameter name according to the current namespace. More... | |
| virtual Clonable * | clone () const =0 |
| Create a copy of this object and send a pointer to it. More... | |
Protected Member Functions | |
| void | addParameter_ (Parameter *parameter) |
| void | addParameters_ (const ParameterList ¶meters) |
| void | deleteParameter_ (size_t index) throw (IndexOutOfBoundsException) |
| void | resetParameters_ () |
| Parameter & | getParameter_ (const std::string &name) throw (ParameterNotFoundException) |
| Parameter & | getParameter_ (size_t index) throw (IndexOutOfBoundsException) |
| const Parameter & | getParameter_ (size_t index) const throw (IndexOutOfBoundsException) |
| Parameter & | getParameterWithNamespace_ (const std::string &name) throw (ParameterNotFoundException) |
| const Parameter & | getParameterWithNamespace_ (const std::string &name) const throw (ParameterNotFoundException) |
| ParameterList & | getParameters_ () |
Private Attributes | |
| ParameterList | independentParameters_ |
| std::map< std::string, AliasParameterListener * > | aliasListenersRegister_ |
A partial implementation of the Parametrizable interface.
Parameters are stored in a protected ParameterList object.
The abstract fireParameterChanged() method is provided so that the derived class know when a parameter has changed, and can be updated. All methods call the corresponding method in ParameterList and then call the fireParameterChanged() method.
Definition at line 126 of file AbstractParameterAliasable.h.
|
inline |
Definition at line 141 of file AbstractParameterAliasable.h.
| AbstractParameterAliasable::AbstractParameterAliasable | ( | const AbstractParameterAliasable & | ap | ) |
Definition at line 46 of file AbstractParameterAliasable.cpp.
References aliasListenersRegister_, aliasListenersRegister_, aliasListenersRegister_, bpp::AliasParameterListener::clone(), bpp::AbstractParametrizable::getNumberOfParameters(), bpp::AbstractParametrizable::getParameters_(), bpp::AbstractParametrizable::getParameters_(), bpp::AbstractParametrizable::getParameters_(), and bpp::AliasParameterListener::setParameterList().
|
virtual |
Definition at line 92 of file AbstractParameterAliasable.cpp.
References aliasListenersRegister_, and aliasListenersRegister_.
|
inlineprotected |
Definition at line 177 of file AbstractParameterAliasable.h.
References bpp::AbstractParametrizable::addParameter_(), bpp::Parameter::clone(), and independentParameters_.
Referenced by bpp::BetaDiscreteDistribution::BetaDiscreteDistribution(), bpp::BetaDiscreteDistribution::BetaDiscreteDistribution(), bpp::ConstantDistribution::ConstantDistribution(), bpp::DirichletDiscreteDistribution::DirichletDiscreteDistribution(), bpp::ExponentialDiscreteDistribution::ExponentialDiscreteDistribution(), bpp::GammaDiscreteDistribution::GammaDiscreteDistribution(), bpp::GammaDiscreteDistribution::GammaDiscreteDistribution(), bpp::GaussianDiscreteDistribution::GaussianDiscreteDistribution(), bpp::GaussianDiscreteDistribution::GaussianDiscreteDistribution(), bpp::InvariantMixedDiscreteDistribution::InvariantMixedDiscreteDistribution(), bpp::MixtureOfDiscreteDistributions::MixtureOfDiscreteDistributions(), bpp::SimpleDiscreteDistribution::SimpleDiscreteDistribution(), bpp::SimpleDiscreteDistribution::SimpleDiscreteDistribution(), bpp::SimpleDiscreteDistribution::SimpleDiscreteDistribution(), bpp::SimpleDiscreteDistribution::SimpleDiscreteDistribution(), bpp::SimpleDiscreteDistribution::SimpleDiscreteDistribution(), bpp::SimpleDiscreteDistribution::SimpleDiscreteDistribution(), bpp::SimpleDiscreteDistribution::SimpleDiscreteDistribution(), bpp::SimpleDiscreteDistribution::SimpleDiscreteDistribution(), bpp::SimpleDiscreteDistribution::SimpleDiscreteDistribution(), bpp::SimpleDiscreteDistribution::SimpleDiscreteDistribution(), bpp::Simplex::Simplex(), bpp::Simplex::Simplex(), bpp::Simplex::Simplex(), bpp::Simplex::Simplex(), bpp::TruncatedExponentialDiscreteDistribution::TruncatedExponentialDiscreteDistribution(), and bpp::TruncatedExponentialDiscreteDistribution::TruncatedExponentialDiscreteDistribution().
|
inlineprotected |
Definition at line 183 of file AbstractParameterAliasable.h.
References bpp::AbstractParametrizable::addParameters_(), and independentParameters_.
Referenced by bpp::InvariantMixedDiscreteDistribution::InvariantMixedDiscreteDistribution(), and bpp::MixtureOfDiscreteDistributions::MixtureOfDiscreteDistributions().
|
virtual |
Set two parameters as 'aliased'.
The values of the two parameters will be synchronized, so that setting the value of one parameter will automatically set the value of the other one accordingly.
| p1 | Original parameter. |
| p2 | Aliased parameter. |
| ParameterNotFoundException | if p1 or p2 do not correspond to existing parameters. |
| Exception | when trying to perform non-valid association. |
Implements bpp::ParameterAliasable.
Definition at line 103 of file AbstractParameterAliasable.cpp.
References bpp::Parameter::addParameterListener(), bpp::Parameter::getConstraint(), bpp::Parameter::getConstraint(), bpp::Parameter::hasConstraint(), bpp::Parameter::hasConstraint(), and bpp::Parameter::hasConstraint().
|
pure virtualinherited |
Create a copy of this object and send a pointer to it.
Implemented in bpp::TestFunction, bpp::InfinityDerivableSecondOrderWrapper, bpp::InfinityDerivableFirstOrderWrapper, bpp::InfinityFunctionWrapper, bpp::StdErr, bpp::FunctionStopCondition, bpp::StdOut, bpp::LinearMatrix< Scalar >, bpp::PlaceboTransformedParameter, bpp::StlOutputStreamWrapper, bpp::ParametersStopCondition, bpp::ReparametrizationDerivableSecondOrderWrapper, bpp::IntervalTransformedParameter, bpp::MetaOptimizer, bpp::StlOutputStream, bpp::DerivableSecondOrder, bpp::Parameter, bpp::ReparametrizationDerivableFirstOrderWrapper, bpp::IntervalConstraint, bpp::RowMatrix< Scalar >, bpp::RowMatrix< double >, bpp::RowMatrix< Real >, bpp::LowMemoryRescaledHmmLikelihood, bpp::NullOutputStream, bpp::LogsumHmmLikelihood, bpp::Simplex, bpp::RTransformedParameter, bpp::RescaledHmmLikelihood, bpp::DerivableFirstOrder, bpp::Optimizer, bpp::DownhillSimplexMethod, bpp::AbstractNumericalDerivative, bpp::SimpleDiscreteDistribution, bpp::DirichletDiscreteDistribution, bpp::DualityDiagram, bpp::ReparametrizationFunctionWrapper, bpp::PrincipalComponentAnalysis, bpp::TruncatedExponentialDiscreteDistribution, bpp::DataTable, bpp::MetaOptimizerInfos, bpp::MixtureOfDiscreteDistributions, bpp::NewtonBacktrackOneDimension, bpp::AutoParameter, bpp::FivePointsNumericalDerivative, bpp::ParameterListener, bpp::ThreePointsNumericalDerivative, bpp::UNode, bpp::InvariantMixedDiscreteDistribution, bpp::PowellMultiDimensions, bpp::Range< T >, bpp::OutputStream, bpp::AliasParameterListener, bpp::BrentOneDimension, bpp::GammaDiscreteDistribution, bpp::GoldenSectionSearch, bpp::DirectionFunction, bpp::TwoPointsNumericalDerivative, bpp::BetaDiscreteDistribution, bpp::ExponentialDiscreteDistribution, bpp::BppVector< TYPE >, bpp::CorrespondenceAnalysis, bpp::Point2D< T >, bpp::Number< T >, bpp::BppString, bpp::BasicTNode, bpp::ParameterList, bpp::ContingencyTableTest, bpp::Font, bpp::BfgsMultiDimensions, bpp::BppBoolean, bpp::TNode, bpp::HmmLikelihood, bpp::GaussianDiscreteDistribution, bpp::NewtonBacktrackOneDimension::NBODStopCondition, bpp::OptimizationStopCondition, bpp::ParameterEvent, bpp::UniformDiscreteDistribution, bpp::DiscreteDistribution, bpp::MultipleDiscreteDistribution, bpp::ConstantDistribution, bpp::ConjugateGradientMultiDimensions, bpp::DownhillSimplexMethod::DSMStopCondition, bpp::RGBColor, bpp::BrentOneDimension::BODStopCondition, bpp::ONode, bpp::GoldenSectionSearch::GSSStopCondition, bpp::PowellMultiDimensions::PMDStopCondition, bpp::SimpleMultiDimensions, bpp::SimpleNewtonMultiDimensions, bpp::HmmEmissionProbabilities, bpp::Constraint, bpp::TransformedParameter, and bpp::NewtonOneDimension.
|
inlineprotected |
Definition at line 189 of file AbstractParameterAliasable.h.
References bpp::AbstractParametrizable::deleteParameter_(), bpp::Parameter::getName(), bpp::AbstractParametrizable::getParameter_(), independentParameters_, and independentParameters_.
|
inlinevirtual |
Notify the class when one or several parameters have changed.
| parameters | A ParameterList object with parameters that changed. |
Implements bpp::AbstractParametrizable.
Reimplemented in bpp::Simplex, bpp::MixtureOfDiscreteDistributions, bpp::SimpleDiscreteDistribution, bpp::DirichletDiscreteDistribution, bpp::TruncatedExponentialDiscreteDistribution, bpp::InvariantMixedDiscreteDistribution, bpp::BetaDiscreteDistribution, bpp::ExponentialDiscreteDistribution, bpp::GammaDiscreteDistribution, bpp::GaussianDiscreteDistribution, bpp::UniformDiscreteDistribution, and bpp::ConstantDistribution.
Definition at line 171 of file AbstractParameterAliasable.h.
References independentParameters_.
Referenced by bpp::ConstantDistribution::fireParameterChanged(), bpp::GaussianDiscreteDistribution::fireParameterChanged(), bpp::ExponentialDiscreteDistribution::fireParameterChanged(), bpp::GammaDiscreteDistribution::fireParameterChanged(), bpp::BetaDiscreteDistribution::fireParameterChanged(), bpp::InvariantMixedDiscreteDistribution::fireParameterChanged(), bpp::TruncatedExponentialDiscreteDistribution::fireParameterChanged(), bpp::DirichletDiscreteDistribution::fireParameterChanged(), bpp::SimpleDiscreteDistribution::fireParameterChanged(), bpp::MixtureOfDiscreteDistributions::fireParameterChanged(), and bpp::Simplex::fireParameterChanged().
|
virtual |
| name | The name of the parameter to look for. |
Implements bpp::ParameterAliasable.
Definition at line 190 of file AbstractParameterAliasable.cpp.
References aliasListenersRegister_, aliasListenersRegister_, and bpp::VectorTools::append().
|
inlinevirtual |
Get the minimal list of parameters to set the model.
If no parameters are aliased, this is the same a getParameters().
Implements bpp::ParameterAliasable.
Definition at line 156 of file AbstractParameterAliasable.h.
References independentParameters_.
|
inlinevirtualinherited |
Implements bpp::Parametrizable.
Definition at line 124 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::prefix_.
Referenced by bpp::MixtureOfDiscreteDistributions::MixtureOfDiscreteDistributions(), bpp::Simplex::setFrequencies(), bpp::Simplex::setFrequencies(), setNamespace(), setNamespace(), setNamespace(), setNamespace(), bpp::BppODiscreteDistributionFormat::write(), bpp::BppODiscreteDistributionFormat::write(), and bpp::BppODiscreteDistributionFormat::write().
|
inlinevirtual |
Get the number of independent parameters.
Implements bpp::ParameterAliasable.
Definition at line 158 of file AbstractParameterAliasable.h.
References independentParameters_.
|
inlinevirtualinherited |
Get the number of parameters.
Implements bpp::Parametrizable.
Definition at line 120 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::parameters_.
Referenced by AbstractParameterAliasable(), bpp::SimpleDiscreteDistribution::fireParameterChanged(), operator=(), bpp::ConstantDistribution::restrictToConstraint(), and bpp::SimpleDiscreteDistribution::restrictToConstraint().
|
inlinevirtualinherited |
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 79 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::parameters_.
Referenced by bpp::ReparametrizationDerivableFirstOrderWrapper::getFirstOrderDerivative(), bpp::AbstractParametrizable::getParameterValue(), bpp::AbstractParametrizable::getParameterWithNamespace_(), bpp::ReparametrizationDerivableSecondOrderWrapper::getSecondOrderDerivative(), bpp::ReparametrizationDerivableSecondOrderWrapper::getSecondOrderDerivative(), bpp::ReparametrizationDerivableSecondOrderWrapper::getSecondOrderDerivative(), bpp::ReparametrizationDerivableSecondOrderWrapper::getSecondOrderDerivative(), bpp::TestFunction::getValue(), and bpp::TestFunction::getValue().
|
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::parameters_.
Referenced by deleteParameter_(), bpp::AbstractParametrizable::getParameterWithNamespace_(), bpp::ConstantDistribution::restrictToConstraint(), bpp::ConstantDistribution::restrictToConstraint(), bpp::TruncatedExponentialDiscreteDistribution::restrictToConstraint(), bpp::InvariantMixedDiscreteDistribution::restrictToConstraint(), bpp::SimpleDiscreteDistribution::restrictToConstraint(), bpp::SimpleDiscreteDistribution::restrictToConstraint(), and bpp::SimpleDiscreteDistribution::restrictToConstraint().
|
inlineprotectedinherited |
Definition at line 188 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::parameters_, bpp::AbstractParametrizable::parameters_, and bpp::AbstractParametrizable::parameters_.
|
inlineprotectedinherited |
Definition at line 194 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::parameters_, bpp::AbstractParametrizable::parameters_, and bpp::AbstractParametrizable::parameters_.
|
virtualinherited |
Resolves a parameter name according to the current namespace.
Implements bpp::Parametrizable.
Definition at line 63 of file AbstractParametrizable.cpp.
References bpp::TextTools::startsWith().
|
inlinevirtualinherited |
Get all parameters available.
Implements bpp::Parametrizable.
Definition at line 77 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::parameters_.
Referenced by fireParameterChanged(), and bpp::MixtureOfDiscreteDistributions::MixtureOfDiscreteDistributions().
|
inlineprotectedinherited |
Definition at line 201 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::parameters_.
Referenced by AbstractParameterAliasable(), AbstractParameterAliasable(), AbstractParameterAliasable(), AbstractParameterAliasable(), operator=(), operator=(), operator=(), and operator=().
|
inlinevirtualinherited |
Get the value for parameter of name 'name'.
| name | The name of the parameter. |
Implements bpp::Parametrizable.
Definition at line 84 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::getParameter(), and bpp::Parameter::getValue().
Referenced by bpp::DirichletDiscreteDistribution::applyParameters(), bpp::ConstantDistribution::fireParameterChanged(), bpp::GaussianDiscreteDistribution::fireParameterChanged(), bpp::GaussianDiscreteDistribution::fireParameterChanged(), bpp::ExponentialDiscreteDistribution::fireParameterChanged(), bpp::GammaDiscreteDistribution::fireParameterChanged(), bpp::GammaDiscreteDistribution::fireParameterChanged(), bpp::BetaDiscreteDistribution::fireParameterChanged(), bpp::BetaDiscreteDistribution::fireParameterChanged(), bpp::InvariantMixedDiscreteDistribution::fireParameterChanged(), bpp::TruncatedExponentialDiscreteDistribution::fireParameterChanged(), bpp::TruncatedExponentialDiscreteDistribution::fireParameterChanged(), bpp::SimpleDiscreteDistribution::fireParameterChanged(), bpp::SimpleDiscreteDistribution::fireParameterChanged(), bpp::SimpleDiscreteDistribution::fireParameterChanged(), bpp::SimpleDiscreteDistribution::fireParameterChanged(), bpp::MixtureOfDiscreteDistributions::fireParameterChanged(), bpp::MixtureOfDiscreteDistributions::fireParameterChanged(), bpp::Simplex::fireParameterChanged(), bpp::Simplex::fireParameterChanged(), bpp::GammaDiscreteDistribution::randC(), bpp::ExponentialDiscreteDistribution::randC(), bpp::GammaDiscreteDistribution::randC(), bpp::GammaDiscreteDistribution::randC(), bpp::ExponentialDiscreteDistribution::randC(), bpp::GammaDiscreteDistribution::randC(), bpp::BetaDiscreteDistribution::randC(), bpp::BetaDiscreteDistribution::randC(), bpp::BetaDiscreteDistribution::randC(), bpp::BetaDiscreteDistribution::randC(), bpp::TruncatedExponentialDiscreteDistribution::randC(), bpp::TruncatedExponentialDiscreteDistribution::randC(), bpp::ConstantDistribution::restrictToConstraint(), and bpp::ConstantDistribution::restrictToConstraint().
|
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 174 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 183 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::getParameter().
|
inlinevirtualinherited |
Tell if there is a parameter with specified name.
| name | The name of the parameter to look for. |
Implements bpp::Parametrizable.
Definition at line 75 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::parameters_.
Referenced by bpp::ConstantDistribution::fireParameterChanged().
|
inlinevirtualinherited |
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 111 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::fireParameterChanged(), and bpp::AbstractParametrizable::parameters_.
Referenced by bpp::Simplex::setFrequencies(), bpp::ReparametrizationFunctionWrapper::setParameters(), and bpp::TestFunction::setParameters().
| AbstractParameterAliasable & AbstractParameterAliasable::operator= | ( | const AbstractParameterAliasable & | ap | ) |
Definition at line 69 of file AbstractParameterAliasable.cpp.
References aliasListenersRegister_, aliasListenersRegister_, aliasListenersRegister_, bpp::AliasParameterListener::clone(), bpp::AbstractParametrizable::getNumberOfParameters(), bpp::AbstractParametrizable::getParameters_(), bpp::AbstractParametrizable::getParameters_(), bpp::AbstractParametrizable::getParameters_(), independentParameters_, independentParameters_, and bpp::AliasParameterListener::setParameterList().
Referenced by bpp::ConstantDistribution::operator=(), bpp::UniformDiscreteDistribution::operator=(), bpp::GaussianDiscreteDistribution::operator=(), bpp::ExponentialDiscreteDistribution::operator=(), bpp::BetaDiscreteDistribution::operator=(), bpp::GammaDiscreteDistribution::operator=(), bpp::InvariantMixedDiscreteDistribution::operator=(), bpp::TruncatedExponentialDiscreteDistribution::operator=(), bpp::MixtureOfDiscreteDistributions::operator=(), bpp::SimpleDiscreteDistribution::operator=(), and bpp::AbstractDiscreteDistribution::operator=().
|
inlineprotected |
Definition at line 197 of file AbstractParameterAliasable.h.
References independentParameters_, and bpp::AbstractParametrizable::resetParameters_().
|
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 | 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 90 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::fireParameterChanged(), and bpp::AbstractParametrizable::parameters_.
|
virtual |
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::MixtureOfDiscreteDistributions, and bpp::InvariantMixedDiscreteDistribution.
Definition at line 163 of file AbstractParameterAliasable.cpp.
References aliasListenersRegister_, aliasListenersRegister_, bpp::AbstractParametrizable::getNamespace(), bpp::AbstractParametrizable::getNamespace(), bpp::AbstractParametrizable::getNamespace(), bpp::AbstractParametrizable::getNamespace(), independentParameters_, independentParameters_, independentParameters_, independentParameters_, bpp::AbstractParametrizable::setNamespace(), bpp::TextTools::startsWith(), and bpp::TextTools::startsWith().
Referenced by bpp::InvariantMixedDiscreteDistribution::setNamespace(), and bpp::MixtureOfDiscreteDistributions::setNamespace().
|
inlinevirtualinherited |
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 104 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::fireParameterChanged(), and bpp::AbstractParametrizable::parameters_.
Referenced by bpp::RescaledHmmLikelihood::setParameters(), bpp::LogsumHmmLikelihood::setParameters(), and bpp::LowMemoryRescaledHmmLikelihood::setParameters().
|
inlinevirtualinherited |
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 97 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::fireParameterChanged(), and bpp::AbstractParametrizable::parameters_.
|
virtual |
Detach two parameters previously set as 'aliased'.
The values of the two parameters will now be independent.
| p1 | Original parameter. |
| p2 | Aliased parameter. |
| ParameterNotFoundException | if p1 or p2 do not correspond to existing parameters. |
| Exception | when trying to perform non-valid dissociation. |
Implements bpp::ParameterAliasable.
Definition at line 143 of file AbstractParameterAliasable.cpp.
|
private |
Contains all parameter listeners for maintening alias relationships. The registry will be updated appropriately upon cloning and deleting.
Definition at line 138 of file AbstractParameterAliasable.h.
Referenced by AbstractParameterAliasable(), AbstractParameterAliasable(), AbstractParameterAliasable(), getAlias(), getAlias(), operator=(), operator=(), operator=(), setNamespace(), setNamespace(), ~AbstractParameterAliasable(), and ~AbstractParameterAliasable().
|
mutableprivate |
Definition at line 132 of file AbstractParameterAliasable.h.
Referenced by addParameter_(), addParameters_(), deleteParameter_(), deleteParameter_(), fireParameterChanged(), getIndependentParameters(), getNumberOfIndependentParameters(), operator=(), operator=(), resetParameters_(), setNamespace(), setNamespace(), setNamespace(), and setNamespace().