bpp-phyl3
3.0.0
|
#include <Bpp/Phyl/Tree/PhyloBranchParam.h>
Public Member Functions | |
PhyloBranchParam (const std::string &prefix="") | |
Constructors. More... | |
PhyloBranchParam (const PhyloBranch &branch) | |
PhyloBranchParam (const PhyloBranchParam &branch) | |
Copy constructor. More... | |
PhyloBranchParam & | operator= (const PhyloBranchParam &branch) |
Assignation operator. More... | |
PhyloBranchParam * | clone () const |
double | getLength () const |
What is the branch length? More... | |
void | setLength (double newLength) |
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 |
void | setNamespace (const std::string &prefix) override |
std::string | getNamespace () const override |
std::string | getParameterNameWithoutNamespace (const std::string &name) const override |
virtual void | fireParameterChanged (const ParameterList ¶meters) |
Protected Member Functions | |
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 |
Private Attributes | |
ParameterList | parameters_ |
std::string | prefix_ |
Friends | |
class | ParametrizablePhyloTree |
Basic branch in which length is parameterized.
Note : Branch Length must be the first parameter (index 0).
Definition at line 23 of file PhyloBranchParam.h.
|
inline |
Constructors.
Definition at line 34 of file PhyloBranchParam.h.
References bpp::AbstractParametrizable::addParameter_(), bpp::Parameter::R_PLUS_STAR, and bpp::NumConstants::SMALL().
Referenced by clone().
PhyloBranchParam::PhyloBranchParam | ( | const PhyloBranch & | branch | ) |
Definition at line 11 of file PhyloBranchParam.cpp.
References bpp::AbstractParametrizable::addParameter_(), bpp::PhyloBranch::getLength(), bpp::PhyloBranch::hasLength(), bpp::Parameter::R_PLUS_STAR, and bpp::NumConstants::SMALL().
|
inline |
Copy constructor.
branch | The branch to copy. |
Definition at line 47 of file PhyloBranchParam.h.
|
inlinevirtual |
Implements bpp::AbstractParametrizable.
Definition at line 69 of file PhyloBranchParam.h.
References PhyloBranchParam().
|
inline |
What is the branch length?
Definition at line 78 of file PhyloBranchParam.h.
References bpp::AbstractParametrizable::getParameter_(), and bpp::Parameter::getValue().
|
inline |
Assignation operator.
branch | the branch to copy. |
Definition at line 62 of file PhyloBranchParam.h.
|
inline |
Define a new branch length
newLength | a double repserenting the new length of the branch |
Definition at line 88 of file PhyloBranchParam.h.
References bpp::AbstractParametrizable::getParameter_(), and bpp::Parameter::setValue().
|
friend |
Definition at line 94 of file PhyloBranchParam.h.