condition#
- hybrid_aif.inference.condition(g, H, c, noise, y)[source]#
Bayesian update of
gony = H x + c + eps,eps ~ N(0, R).Returns
(posterior, log_marginal),log_marginal = log p(y).noiseis the noise: a lower-triangular Cholesky factorR_cholwithR = R_chol R_cholᵀ, or aDiagonalNoise.A Cholesky factor takes the update in observation space:
log p(y)from the innovation covariance’s Cholesky factor, and the covariance from the Joseph form in Gram factors, so the posterior stays SPD for near-singular gains.O(d_obs³ + d_obs² d).A
DiagonalNoisetakes it in state space (_condition_diagonal()): the square-root information form, with the log evidence from the matrix determinant lemma and the Woodbury identity. Nod_obsbyd_obsarray is formed;O(d_obs n²)withn = d, ordplus the number of columns of the noise’slow_rankwhen it has one.