Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Python random stdlib has deprecated .jumpahead. Numpy.random is being updated (formerly randomgen), providing method recommendations for parallelisable monty- carlo simulations. Outstanding issues: - The track generation still appears to invoke np.random.normal during the main loop, which is likely a bug (defeating repeatability and parallelisation-independence). (Should replace with another call on PRNG object.) - Could update track generation to directly use random generator, rather than obfuscating with wrapper named like standard module. (No additional capabilities required.) - Should pass differently-initialised PRNGs explicitly, rather than rely on process-local global-state mutations. (This will support repeatability with multi-threading.) - lognormvariate currently implements a non-standard definition, and is only called once (with constant arguments). Should migrate to use conventional formulation. - Some unused functions (Cauchy and NCT) have been commented out pending removal. (To simplify future maintenance/refactors.)
- Loading branch information
Showing
3 changed files
with
83 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters