rlabbe / filterpy

Python Kalman filtering and optimal estimation library. Implements Kalman filter, particle filter, Extended Kalman filter, Unscented Kalman filter, g-h (alpha-beta), least squares, H Infinity, smoothers, and more. Has companion book 'Kalman and Bayesian Filters in Python'.
MIT License
3.31k stars 617 forks source link

Fixing square root kalman (K, S, and off-diagonal elements of P) #243

Closed frejanordsiek closed 2 years ago

frejanordsiek commented 3 years ago

I was trying to work through the math used in the square root kalman filter to make sure I understood it while comparing to various references such as BDO Anderson and JB Moore. Optimal filtering. Prentice-Hall (1979) and found a couple issues in the update method.

To fix this, I did the following

I also went ahead and