ComPWA
Common Partial-Wave-Analysis Framework
Optimizer.hpp
Go to the documentation of this file.
1 // Copyright (c) 2013, 2017 The ComPWA Team.
2 // This file is part of the ComPWA framework, check
3 // https://github.com/ComPWA/ComPWA/license.txt for details.
4 
5 #ifndef COMPWA_OPTIMIZER_HPP_
6 #define COMPWA_OPTIMIZER_HPP_
7 
8 #include "Core/FitParameter.hpp"
10 
11 namespace ComPWA {
12 namespace Optimizer {
13 
21 template <typename FitResultType, typename EstimatorType = double>
22 class Optimizer {
23 public:
24  virtual ~Optimizer() = default;
26  virtual FitResultType optimize(Estimator::Estimator<EstimatorType> &Estimator,
27  FitParameterList FitParameters) = 0;
28 };
29 
30 } // namespace Optimizer
31 } // namespace ComPWA
32 
33 #endif
std::vector< FitParameter< double > > FitParameterList
virtual ~Optimizer()=default
This class template provides the interface to implementations, which estimate the "closeness" of a Fu...
Definition: Estimator.hpp:23
virtual FitResultType optimize(Estimator::Estimator< EstimatorType > &Estimator, FitParameterList FitParameters)=0
Finds the optimal value of the Estimator, by varying its parameters.
This class template provides the interface to optimization libraries.
Definition: Optimizer.hpp:22