Skip to content
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

Add log weight property to Particle State #791

Merged
merged 3 commits into from
Apr 11, 2023
Merged

Conversation

sdhiscocks
Copy link
Member

This has a performance advantage with many particles, by simply storing weights in log space, and converting to weights dynamically when required (utilising a cache for the property).

Code changes include filters keeping weights in log space, and backwards compatible, so no need to make any changes to have performance advantage.

Relates to #780

This may have performance advantage by simply storing weights in log
space, and converting to weights dynamically when requried (utilising a
cache for the property).

Changes here are mostly backwards compatible, other than an issue with
`from_state` method.
This handles the fact that the weight and particle list should be
ignored for created states, as the elements of these are
converted/stored in other parts of an instance, and only used during
instantiation of the class.
@sdhiscocks sdhiscocks requested a review from a team as a code owner April 11, 2023 09:19
@sdhiscocks sdhiscocks requested review from jswright-dstl and mharris-dstl and removed request for a team April 11, 2023 09:19
@sdhiscocks sdhiscocks merged commit 3df69be into main Apr 11, 2023
@sdhiscocks sdhiscocks deleted the log_weight_particle_state branch January 22, 2024 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants