pastas.solver.EmceeSolve.log_likelihood#

pastas.solver.EmceeSolve.log_likelihood(p: pastas.typing.ArrayLike, noise: bool, weights: pandas.Series | None = None, callback: pastas.typing.CallBack | None = None) float#

Log-likelihood function.

Parameters:
  • p (numpy.Array) – Numpy array with the parameters.

  • noise (bool)

  • weights

  • callback

Returns:

lnlike – The log-likelihood for the parameters.

Return type:

float

Notes

This method is always called by emcee.