-
Notifications
You must be signed in to change notification settings - Fork 3
EkfdPredict and GmekfPredict classes and tests #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…h both pass. EkfdPredict test checked against manual ekf update, checked that a diagonal H implies a diagonal W, and checked against KfdPredict for linear measurements. GmekfPredict test checked against EkfdPredict for single mixand, checked that weights get heavily scaled down for non-agreeing measurements, and checked against GmkfPredict for linear measurements.
pyest/filters/KalmanFilter.py
Outdated
| (ny,ny) measurement noise covariance matrix | ||
| H : ndarray or callable | ||
| (nz,nx) measurement Jacobian matrix | ||
| z_k = H(tk, xk, *args) @ x. If provided an ndarray instead, H will |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here, we may want to force the user to specify H as a callable to avoid user errors caused by using an incorrect constant Jacobian
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed it to be consistent with the handling of F in EkfdPredict, where it is documented as a callable but if provided an ndarray is still recast as a callable. I can add an error/warning if we want that though.
Added classes for EkfdPredict and GmekfPredict to filters, and respective tests to tests. The tests should be comprehensive and they fully pass.