ComPWA
Common Partial-Wave-Analysis Framework
FunctionTreeEstimator.hpp
Go to the documentation of this file.
1 #ifndef CORE_FUNCTIONTREEESTIMATOR_HPP_
2 #define CORE_FUNCTIONTREEESTIMATOR_HPP_
3 
4 #include <memory>
5 
6 #include "Core/FitParameter.hpp"
9 
10 namespace ComPWA {
11 namespace FunctionTree {
12 
13 class TreeNode;
14 
16 public:
17  FunctionTreeEstimator(std::shared_ptr<TreeNode> tree,
18  ParameterList parameters);
19 
20  FunctionTreeEstimator(const FunctionTreeEstimator &other) = delete;
21 
23 
24  double evaluate() noexcept;
25 
26  void updateParametersFrom(const std::vector<double> &params);
27 
28  std::vector<ComPWA::Parameter> getParameters() const;
29 
30  std::string print(int level) const;
31 
32  std::shared_ptr<TreeNode> getFunctionTree() const;
34 
35 private:
36  std::shared_ptr<TreeNode> Tree;
38 };
39 
42 
43 } // namespace FunctionTree
44 } // namespace ComPWA
45 
46 #endif
void updateParametersFrom(const std::vector< double > &params)
It is important to input the vector in the same length and order as defined in the getParameters() me...
std::vector< FitParameter< double > > FitParameterList
ParameterList class.
This class template provides the interface to implementations, which estimate the "closeness" of a Fu...
Definition: Estimator.hpp:23
std::vector< ComPWA::Parameter > getParameters() const
FitParameterList createFitParameterList(ComPWA::FunctionTree::ParameterList Parameters)
FunctionTreeEstimator(std::shared_ptr< TreeNode > tree, ParameterList parameters)
std::shared_ptr< TreeNode > getFunctionTree() const
This class provides a list of parameters and values of different types.