skretrieval.retrieval.prior.ConstantDiagonalPrior#

class skretrieval.retrieval.prior.ConstantDiagonalPrior(value: float = 1.0)[source]#

Bases: BasePrior

A prior that is constant along the diagonal. The initial state is pulled from the StateVectorElement upon initialization.

Parameters:

value (float, optional) – _description_, by default 1.0

__init__(value: float = 1.0)[source]#

A prior that is constant along the diagonal. The initial state is pulled from the StateVectorElement upon initialization.

Parameters:

value (float, optional) – _description_, by default 1.0

Methods

__init__([value])

A prior that is constant along the diagonal.

init(sv[, sv_slice])

Attributes

inverse_covariance

The inverse covariance of the prior state.

precision_factor

Return R such that R.T @ R is the prior precision.

state

The prior state $x_a$ of size (n,)

property inverse_covariance#

The inverse covariance of the prior state.

The returned matrix has shape (n, n).

property precision_factor#

Return R such that R.T @ R is the prior precision.

Structured priors override this to retain their sparse residual form. The fallback is intended for small or dense custom priors.

property state#

The prior state $x_a$ of size (n,)