johnhw / pfilter

Basic Python particle filter
MIT License
172 stars 25 forks source link

Bugfix: initial particles being overwritten with 0s #6

Closed dkloving closed 5 years ago

dkloving commented 5 years ago

After self.particles was generated by sampling the prior distribution, it was being re-initialized with np.zeros. As a result, all initial particles had all values set to 0.

johnhw commented 5 years ago

Thank you for the fix!