$g_k = p_k$
$c$ $/ ($
$c$ $p_k$
$c$$~+~r)$
$\hat{x}_k = \hat{x}_k + g_k(z_k - $$c$ $\hat{x}_k)$
$p_k = (1 - g_k $$c$) $p_k$
Here is an extension of our airplane demo, showing a longer duration of time and
adding in a control signal representing the pilot
steadily pulling back on the control column to raise the altitude of the plane. Try moving
around the sliders to adjust the values of the different constants.
As in the previous demo, the original signal is shown blue, the observed signal in red,
and the Kalman-filtered signal in green.