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

classes to represent continuous distributions for simulation draws #624

Merged
merged 13 commits into from
Apr 23, 2020

Conversation

sbenthall
Copy link
Contributor

As an incremental step towards #611 , this PR refactors the draw_ functions in simulation.py so that each one is encapsulated in a class (Normal, Bernoulli, etc.)

Draws are now accomplished by using the draw method on a class initialized with the appropriate parameters.

This brings the HARK programming idioms closer to mathematical invocations of random variables.
It also brings HARK closer in line with best practices for representing distributions in other libraries, such as Dolo.

@sbenthall
Copy link
Contributor Author

The HARK builds are failing here due to some kind of GitHub checkout error?
It doesn't look related to the code.

@mnwhite
Copy link
Contributor

mnwhite commented Apr 23, 2020

Wooooo

@mnwhite mnwhite merged commit bc872eb into econ-ark:master Apr 23, 2020
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.

2 participants