|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
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. | |
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.
| 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.
| base | Full-dimensional likelihood to profile. |
| cfg | Contour computation configuration. |
Definition at line 16 of file ContourEngine.cpp.
| Contour ContourEngine::compute_contour | ( | double | z, |
| std::array< double, 4 > | bounds, | ||
| std::size_t | resolution | ||
| ) |
Computes a profiled 2D contour for a requested significance.
| z | One-dimensional Gaussian-equivalent significance. The engine converts it to the appropriate two-dimensional chi-square level. |
| bounds | Extraction domain as {xmin, xmax, ymin, ymax}. |
| resolution | Requested extraction resolution. |
| std::exception | if profiling or contour extraction fails without a configured fallback being able to recover. |
Definition at line 60 of file ContourEngine.cpp.