zziz / kalman-filter

Kalman Filter implementation in Python using Numpy only in 30 lines.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shape error when H is 2x4

eitanrich opened this issue · comments

I've noticed self.m is not used.
The following changes fixed my problem:
self.m = H.shape[0]
self.R = np.eye(self.m) if R is None else R

Thanks.