-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend sample view to sample from random distributions (#296)
This saves lines of code by extending the sample view implementation to convert any random distribution (a callable that takes a URNG as an input argument) into a range. It also makes the implementation easier to follow by removing the use of default arguments (which play poorly with overloads). Related to #279. Signed-off-by: Nahuel Espinosa <nespinosa@ekumenlabs.com>
- Loading branch information
1 parent
f138eb5
commit a819c82
Showing
3 changed files
with
109 additions
and
52 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