skretrieval.retrieval.prior.ConstantDiagonalPrior#
- class skretrieval.retrieval.prior.ConstantDiagonalPrior(value: float = 1.0)[source]#
Bases:
BasePriorA 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
The inverse covariance of the prior state.
Return
Rsuch thatR.T @ Ris the prior precision.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
Rsuch thatR.T @ Ris 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,)