fips.InverseProblem#
- class fips.InverseProblem(obs, prior, forward_operator, modeldata_mismatch, prior_error, constant=None, round_index=6)[source]#
Inverse problem combining observations, priors, and forward model.
Organizes state vectors, observations, forward operators, and error covariances into a unified framework for solving inverse problems via different estimators.
- Parameters:
obs (VectorLike) – Observation vector.
prior (VectorLike) – Prior state vector.
forward_operator (MatrixLike) – Forward operator mapping state space to observation space.
modeldata_mismatch (MatrixLike) – Covariance matrix representing model-data mismatch (observation error).
prior_error (MatrixLike) – Covariance matrix representing prior error.
constant (VectorLike or float, optional) – Optional constant term added to the forward model (e.g., background or bias).
round_index (int, optional) – Number of decimal places to round to. If None, no rounding is performed.
Attributes
Averaging kernel matrix (A).
desroziersDesroziers et al. (2005) diagnosed observation error covariance.
Return the fitted estimator (raises if not solved).
Kalman gain matrix (K).
n_obsReturn number of observations.
n_stateReturn number of state variables.
obs_indexReturn the observation space index.
Posterior state estimate.
Posterior error covariance.
Modeled observations (H @ posterior).
Modeled observations using the prior (H @ prior).
state_indexReturn the state space index.
Observation vector.
Prior state vector.
Forward operator mapping state space to observation space.
Covariance matrix representing prior error.
Covariance matrix representing model-data mismatch (observation error).
Optional constant term added to the forward model (e.g., background or bias).
Methods