We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fca3026 commit 541a006Copy full SHA for 541a006
1 file changed
src/smsfusion/_ins_v2.py
@@ -121,12 +121,13 @@ def _kalman_gain(
121
Kalman gain vector.
122
"""
123
124
- # Innovation covariance (inverse)
125
Ph = np.dot(P, h)
126
- s_inv = 1.0 / (np.dot(h, Ph) + r)
+
+ # Innovation covariance
127
+ s = np.dot(h, Ph) + r
128
129
# Kalman gain
- k = Ph * s_inv
130
+ k = Ph / s
131
132
return k
133
0 commit comments