ComPWA
Common Partial-Wave-Analysis Framework
SumMinLogLH.hpp
Go to the documentation of this file.
1 // Copyright (c) 2013, 2015, 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_ESTIMATOR_MINLOGLH_SUMMINLOGLH_HPP_
6 #define COMPWA_ESTIMATOR_MINLOGLH_SUMMINLOGLH_HPP_
7 
8 #include "Core/FitParameter.hpp"
10 #include "Estimator/Estimator.hpp"
11 
12 namespace ComPWA {
13 namespace FunctionTree {
14 class FunctionTree;
15 }
16 
17 namespace Estimator {
18 class MinLogLH;
19 
24 class SumMinLogLH : public Estimator<double> {
25 public:
26  SumMinLogLH(std::vector<std::shared_ptr<Estimator>> Estimators);
27 
29  double evaluate() noexcept final;
30 
31  void updateParametersFrom(const std::vector<double> &params) final;
32 
33  std::vector<ComPWA::Parameter> getParameters() const final;
34 
35 private:
36  std::vector<std::shared_ptr<Estimator>> LogLikelihoods;
37 };
38 
39 std::tuple<ComPWA::FunctionTree::FunctionTreeEstimator, FitParameterList>
41  std::vector<std::pair<ComPWA::FunctionTree::FunctionTreeEstimator,
43  Estimators);
44 
45 } // namespace Estimator
46 } // namespace ComPWA
47 #endif
Calculates the combined likelihood of multiple MinLogLH.
Definition: SumMinLogLH.hpp:24
std::vector< FitParameter< double > > FitParameterList
std::vector< std::shared_ptr< Estimator > > LogLikelihoods
Definition: SumMinLogLH.hpp:36
This class template provides the interface to implementations, which estimate the "closeness" of a Fu...
Definition: Estimator.hpp:23
std::tuple< FunctionTreeEstimator, FitParameterList > createSumMinLogLHFunctionTreeEstimator(std::vector< std::pair< ComPWA::FunctionTree::FunctionTreeEstimator, FitParameterList >> Estimators)
Definition: SumMinLogLH.cpp:53