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

Base interface for negative log-likelihood evaluators. More...

#include <ILikelihood.h>

Inheritance diagram for ILikelihood:

Public Member Functions

virtual ~ILikelihood ()=default
 Virtual destructor for safe polymorphic deletion.
 
virtual double nll (const std::vector< double > &theta) const =0
 Evaluates the negative log-likelihood at a given parameter point.
 
virtual std::vector< fit_app::ParameterDefinitionget_param_defs () const =0
 Returns the metadata describing the likelihood parameters.
 
virtual std::size_t dim () const =0
 Returns the total dimension of the parameter vector.
 

Detailed Description

Base interface for negative log-likelihood evaluators.

Implementations receive a parameter vector $\theta$ and return the corresponding negative log-likelihood value. The interface deliberately keeps the parameter layout abstract; concrete implementations are responsible for defining how $\theta$ is split and interpreted.

Definition at line 27 of file ILikelihood.h.

Constructor & Destructor Documentation

◆ ~ILikelihood()

virtual ILikelihood::~ILikelihood ( )
virtualdefault

Virtual destructor for safe polymorphic deletion.

Member Function Documentation

◆ dim()

virtual std::size_t ILikelihood::dim ( ) const
pure virtual

Returns the total dimension of the parameter vector.

Returns
Number of scalar parameters expected by nll.

Implemented in BaseLikelihood, ChiSquaredLikelihood, and WithGaussianConstraints.

◆ get_param_defs()

virtual std::vector< fit_app::ParameterDefinition > ILikelihood::get_param_defs ( ) const
pure virtual

Returns the metadata describing the likelihood parameters.

The returned definitions are expected to follow the same ordering as the parameter vector accepted by nll.

Returns
Ordered list of parameter definitions.

Implemented in BaseLikelihood, and WithGaussianConstraints.

◆ nll()

virtual double ILikelihood::nll ( const std::vector< double > &  theta) const
pure virtual

Evaluates the negative log-likelihood at a given parameter point.

Parameters
thetaParameter vector evaluated by the likelihood implementation.
Returns
Negative log-likelihood value associated with theta.

Implemented in BaseLikelihood, ChiSquaredLikelihood, and WithGaussianConstraints.


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