Skip to content

Commit

Permalink
Fixes unmatching dimension in correct step sigma update
Browse files Browse the repository at this point in the history
  • Loading branch information
leocencetti committed Feb 2, 2021
1 parent db89d7d commit 13dbcce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_ukf.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def _correct(self, predicted_state_mean: np.ndarray, predicted_state_covariance:
output_sigma_points = np.zeros((self._output_dimension, self._sigma_dimension))

for ii in range(self._sigma_dimension):
output_sigma_points[:, ii] = self._output_transition(next_sigma_points[:, ii]).squeeze()
output_sigma_points[:, ii] = self._output_transition(next_sigma_points[:, ii, None]).squeeze()

output_mean = output_sigma_points @ self._m_weights

Expand Down

0 comments on commit 13dbcce

Please sign in to comment.