|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
Minimizes a likelihood over free parameters subject to fixed constraints. More...
#include <Profiler.h>
Public Member Functions | |
| Profiler (std::shared_ptr< fit_app::IFitBackend > minimizer, ProfilerMode mode=ProfilerMode::MINUIT) | |
| Constructs a profiler. | |
| ProfileResult | profile (std::shared_ptr< ILikelihood > base, const ProfileRequest &pr) const |
| Profiles a likelihood according to a request. | |
Minimizes a likelihood over free parameters subject to fixed constraints.
The profiler supports two modes:
Definition at line 64 of file Profiler.h.
| Profiler::Profiler | ( | std::shared_ptr< fit_app::IFitBackend > | minimizer, |
| ProfilerMode | mode = ProfilerMode::MINUIT |
||
| ) |
Constructs a profiler.
| minimizer | Fit backend used for numerical minimization and fallbacks. |
| mode | Profiling algorithm selected for future calls. |
Definition at line 85 of file Profiler.cpp.
| ProfileResult Profiler::profile | ( | std::shared_ptr< ILikelihood > | base, |
| const ProfileRequest & | pr | ||
| ) | const |
Profiles a likelihood according to a request.
If no free parameters are provided, the method evaluates the likelihood directly at the fixed point. Otherwise, it dispatches to the configured profiling mode.
| base | Likelihood to profile. |
| pr | Fixed/free parameter specification and warm-start vector. |
| std::runtime_error | for inconsistent request dimensions or invalid fixed parameter indices. |
Definition at line 93 of file Profiler.cpp.