Skip to content

Refactor resampling functions#207

Merged
AdrienCorenflos merged 9 commits intomainfrom
resampling-refactor
Feb 26, 2026
Merged

Refactor resampling functions#207
AdrienCorenflos merged 9 commits intomainfrom
resampling-refactor

Conversation

@AdrienCorenflos
Copy link
Contributor

Changes the signature of resampling functions in prevision of #202

@AdrienCorenflos
Copy link
Contributor Author

Change of note: the adaptive resampling is now a decorator of the resampling function rather than a float input to particle filter: I think this is a LOT cleaner.

@AdrienCorenflos
Copy link
Contributor Author

Ideally the DPF trick if @DanWaxman would also be implemented as a decorator given it only acts on the output of a resampling

Add assertion to ensure number of sampled indices matches particles.
Copy link
Contributor

@SamDuffield SamDuffield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Liking this! Definitely good to have this in cuthbertlib and indeed is more extensible to other resampling schemes or decorators in the future

@AdrienCorenflos AdrienCorenflos merged commit b8f0be2 into main Feb 26, 2026
2 checks passed
@AdrienCorenflos AdrienCorenflos deleted the resampling-refactor branch February 26, 2026 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants