pastas.solver.EmceeSolve.log_prior#

pastas.solver.EmceeSolve.log_prior(p: pastas.typing.ArrayLike) float#

Probability of parameter set given the priors.

Parameters:

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

Returns:

lp – Probability of parameter set given the priors

Return type:

float

Notes

Two cases exist:

  • If any of the parameters touch the boundary, -np.inf is returned. This basically tells the algorithm that the parameter set is very unlikely.

  • Otherwise, the probability of each parameter given its prior is computed.