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

Random Number Generation #8

Open
rstoneback opened this issue Jul 7, 2018 · 2 comments
Open

Random Number Generation #8

rstoneback opened this issue Jul 7, 2018 · 2 comments

Comments

@rstoneback
Copy link
Collaborator

Random number functions work best when they generate many numbers are once, which isn't always convenient. Python generators offer a solution to this, but they aren't conveniently carried around. Create two random number generator functions, one normally distributed, the other in a top hat distribution, and attach them to the pysat object at instantiation.

Plan:
- Create random number generators, attach to Instrument object in init
- Simple way precalculates 10K - 100K points upon instantiation, though many times they won't be used. Better if the functions generate the numbers upon first call
- Functions should refill themselves when empty
- Need support to provide seeds - make them options to Instrument object. One seed probably enough.
- To make things convenient, provide options for range and amplitude

@jklenzing
Copy link
Member

Given the recent path in development, how should we best implement this? Should we still be implementing this?

@aburrell
Copy link
Member

@rstoneback could you provide more background as to why this is desirable? That would help inform our actions.

@jklenzing jklenzing transferred this issue from pysat/pysat Jan 29, 2021
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

3 participants