Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
Profiler Class Reference

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.
 

Detailed Description

Minimizes a likelihood over free parameters subject to fixed constraints.

The profiler supports two modes:

  • ProfilerMode::MINUIT, which delegates to the configured fit backend,
  • ProfilerMode::LAPLACE_NUISANCE, which attempts a fast Laplace approximation for nuisance-only profiling and falls back to Minuit when the request is incompatible or the approximation fails.

Definition at line 64 of file Profiler.h.

Constructor & Destructor Documentation

◆ Profiler()

Profiler::Profiler ( std::shared_ptr< fit_app::IFitBackend minimizer,
ProfilerMode  mode = ProfilerMode::MINUIT 
)

Constructs a profiler.

Parameters
minimizerFit backend used for numerical minimization and fallbacks.
modeProfiling algorithm selected for future calls.

Definition at line 85 of file Profiler.cpp.

Member Function Documentation

◆ profile()

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.

Parameters
baseLikelihood to profile.
prFixed/free parameter specification and warm-start vector.
Returns
Profile result containing the profiled NLL, argmin and convergence status.
Exceptions
std::runtime_errorfor inconsistent request dimensions or invalid fixed parameter indices.

Definition at line 93 of file Profiler.cpp.


The documentation for this class was generated from the following files: