-
Notifications
You must be signed in to change notification settings - Fork 119
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
Extend sampling functions to more than one item #837
Comments
I think that here we can even create a new package specialized for these sampling function, the reason is that these sampling function aren't useful only for agent based modeling, they can be used with any iterator |
created: https://github.com/Tortar/IteratorSampling.jl it will be be easier to solve this issue with it |
With |
What does multiple elements mean here. what should |
say instead of a single random agent, between all nearby agents, you want two of them, currently you either need to repeat (and maybe reject) random_agent two times or collect and sample. Instead if we talk about |
yes, that would be acceptable. We cross ref the two functions in their docsttrings. |
Currently we support only single versions of specialized sampling function, but we could support also the multi-versions so that the new function sample without replacement for more than one item
The text was updated successfully, but these errors were encountered: