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