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

Orchestrates profiled likelihood contour computation. More...

#include <ContourEngine.h>

Public Member Functions

 ContourEngine (std::shared_ptr< ILikelihood > base, const ContourConfig &cfg)
 Constructs a contour engine for a base likelihood.
 
Contour compute_contour (double z, std::array< double, 4 > bounds, std::size_t resolution)
 Computes a profiled 2D contour for a requested significance.
 

Detailed Description

Orchestrates profiled likelihood contour computation.

A ContourEngine instance owns the profiled 2D likelihood view and the contour extractor selected in ContourConfig. Calling compute_contour evaluates the profiled likelihood field, converts the requested Gaussian-like significance into the corresponding 2D likelihood-ratio level, and extracts contour paths within the requested bounds.

Definition at line 80 of file ContourEngine.h.

Constructor & Destructor Documentation

◆ ContourEngine()

ContourEngine::ContourEngine ( std::shared_ptr< ILikelihood base,
const ContourConfig cfg 
)

Constructs a contour engine for a base likelihood.

Depending on ContourConfig::profiling_method, the base likelihood may be wrapped in WithGaussianConstraints before building the profiled 2D likelihood. If a fallback algorithm is configured, the primary extractor is wrapped in WithFallback.

Parameters
baseFull-dimensional likelihood to profile.
cfgContour computation configuration.

Definition at line 16 of file ContourEngine.cpp.

Member Function Documentation

◆ compute_contour()

Contour ContourEngine::compute_contour ( double  z,
std::array< double, 4 >  bounds,
std::size_t  resolution 
)

Computes a profiled 2D contour for a requested significance.

Parameters
zOne-dimensional Gaussian-equivalent significance. The engine converts it to the appropriate two-dimensional chi-square level.
boundsExtraction domain as {xmin, xmax, ymin, ymax}.
resolutionRequested extraction resolution.
Returns
Extracted contour at the converted likelihood-ratio level.
Exceptions
std::exceptionif profiling or contour extraction fails without a configured fallback being able to recover.

Definition at line 60 of file ContourEngine.cpp.


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