-
Notifications
You must be signed in to change notification settings - Fork 117
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
Fix reported entropy #408
Fix reported entropy #408
Conversation
[147] PASSED on noeticAll tests passed
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #408 +/- ##
==========================================
- Coverage 91.72% 91.71% -0.02%
==========================================
Files 30 30
Lines 1886 1883 -3
==========================================
- Hits 1730 1727 -3
Misses 156 156 ☔ View full report in Codecov by Sentry. |
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.
It would be nice to have a simple test if it's not too complicated
[148] PASSED on noeticAll tests passed
|
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.
LGTM
With the current implementation on the
master
branch, the entropy of the particle filter seems to be always calculated after resampling or resizing the number of particles which reset each particle probability to1 / num_particles
. Thus the reported entropy is always the same. In this PR, this quantity is calculated in themeasure
function to represent the entropy of the particle filter right after the particles probabilities are updated based on the measurement likelihood.