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

Build Pseudo Random Number Generator Structure #13

Closed
sslattery opened this issue Oct 1, 2012 · 4 comments
Closed

Build Pseudo Random Number Generator Structure #13

sslattery opened this issue Oct 1, 2012 · 4 comments
Assignees

Comments

@sslattery
Copy link
Owner

Monte Carlo methods rely on random number generation for their implementation. Current solver implementations leverage the C++ STL generator. This should be abstracted to a general PRNG concept so that we may swap out implementations for performance comparisons. Initially, we'll also incorporate SPRNG as an implementation of this abstraction.

@ghost ghost assigned sslattery Oct 1, 2012
@sslattery
Copy link
Owner Author

Turns out SPRNG is a poorly designed, deprecated code base that is hard to build. I am moving to the Boost random library as I already have a TPL dependency on boost and these are the algorithms moving into the C++11 standard.

@gonuke
Copy link
Collaborator

gonuke commented Oct 1, 2012

Hmmm... I've relied on SPRNG fine in the past... What are the algorithms/parameters of the Boost library?

@sslattery
Copy link
Owner Author

It looks like there's a lot of good stuff with references to published literature in here:

http://www.boost.org/doc/libs/1_51_0/doc/html/boost_random/reference.html

@sslattery
Copy link
Owner Author

This is complete with unit tests for boost implementations. If SPRNG is really desired in the future then we can simply write the traits adapters for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants