pastas.solver.objective.likelihood.LikelihoodBase#

class pastas.solver.objective.likelihood.LikelihoodBase#

Abstract base class for likelihood functions.

This class defines the interface for likelihood functions used in Pastas. All likelihood functions should inherit from this class and implement the required methods.

_name#

Name of the likelihood function.

Type:

str

nparam#

Number of parameters in the likelihood function.

Type:

int

property nparam: int#
Abstractmethod:

Number of parameters in the likelihood function.

Methods#

get_init_parameters(name) → pandas.DataFrame

Get initial parameters for the likelihood function.

compute(res, p) → float

Compute the log-likelihood.