7 namespace FunctionTree {
11 : Tree(tree), Parameters(parameters) {
14 throw std::runtime_error(
"FunctionTreeEstimator::FunctionTreeEstimator(): " 15 "FunctionTree is empty!");
20 x->fixParameter(
false);
41 const std::vector<double> ¶ms) {
44 p->setValue(params[pos]);
50 std::vector<ComPWA::Parameter> params;
58 return Tree->print(level);
Template implementation of Parameter for simple values.
void updateParametersFrom(const std::vector< double > ¶ms)
It is important to input the vector in the same length and order as defined in the getParameters() me...
std::shared_ptr< TreeNode > Tree
std::string print(int level) const
std::vector< FitParameter< double > > FitParameterList
std::vector< ComPWA::Parameter > getParameters() const
ParameterList getParameterList() const
FitParameterList createFitParameterList(ComPWA::FunctionTree::ParameterList Parameters)
double evaluate() noexcept
FunctionTreeEstimator(std::shared_ptr< TreeNode > tree, ParameterList parameters)
std::shared_ptr< TreeNode > getFunctionTree() const
virtual std::vector< std::shared_ptr< FitParameter > > & doubleParameters()
This class provides a list of parameters and values of different types.