_prior_residual

pmrf.objectives.problems._prior_residual(distribution: Any, value: Array) → Array | None

Returns the prior residual of a value under its physical-space prior, or None.

A scale or a prior authored over physical space reaches the distribution as an affine map, which leaves \((\theta - \mu)/\sigma\) unchanged, so it is undone first.