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 Alternative instance to Population #244

Open
turion opened this issue Jan 11, 2023 · 0 comments
Open

Add Alternative instance to Population #244

turion opened this issue Jan 11, 2023 · 0 comments

Comments

@turion
Copy link
Collaborator

turion commented Jan 11, 2023

One could easily derive Alternative for Population. It would have the effect of concatenating several particle populations.

For example, (spawn 100 >> model1) <|> (spawn 100 >> model2) would have 200 particles, where 100 have been conditioned according to the first model, and the others according to the second model.

Another useful function might be take :: Int -> Population -> Population which makes sure at most a certain number of particles are in the filter. Probably, the ones with the lowest mass should be dropped.

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

No branches or pull requests

1 participant