Closed Orchidaceae closed 8 months ago
The Kalman filter tutorial uses the CombinedLinearGaussianTransitionModel
which takes linear Gaussian transition models that all have the .matrix
attribute.
The CombinedGaussianTransitionModel
is slightly different, the assumption is that the transition models used here are Gaussian, i.e., not linear (and no matrix
attribute) and require the use of the .jacobian
attribute.
I encountered an issue when following the Introduction guide to Kalman filter. The transition_model referenced on Line 72 and 92 in kalman.py does not have a matrix attribute. In this case I believe that the referenced
CombinedGaussianTransitionModel
do have a jacobian attribute to be used instead, like this:With these changes the example runs just fine, I am however not sure if it will work for other transition models.