Skip to main content
. Author manuscript; available in PMC: 2015 Sep 15.
Published in final edited form as: Respir Physiol Neurobiol. 2014 Jul 17;201:84–92. doi: 10.1016/j.resp.2014.07.002

Table A1.

Summary of the adaptive estimation algorithm.

Initialization
 Initialize Ȃ0 and P^1-, λ, R0
Forward pass
 1. For n from 1 to N
 2. Construct the data history matrix Hn
 3. Compute: one step prediction of observation: xn=HnAn-
 4. Compute residuals: rn = xnn
 5. Update the covariance matrix: Rn=(1-λ)Rn-1+λrnrnT, and compute Rn according to Eq. (A8)
 6. Compute Kalman Gain: Kn=Pn-HnT/(HnPn-HnT+Rn)
 7. Compute state estimate: Ȃn = Ȃn−1 + Knen
 8. Compute estimated state covariance: Pn=Pn--KnHnPn-
 9. Update state noise covariance: Wn = λPn
 10. Calculate a priori estimated state covariance: Pn+1-=Pn+Wn
END
Backward pass
 For n from N − 1 to 1
 Let Sn=P^n/Pn+1-
 1. Compute smoothed estimated state covariance:
P^ns=Pn+Sn(P^n+1s-P^n+1-)SnT
 2. Compute smoothed state estimate: Ans=An-Sn(An+1s-An)
END
Note, the initial smoothed estimate at step N for the backward pass is the final state estimate for the forward pass: ANs=AN
Similarly, P^n+1s=PN