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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend sample view to sample from random distributions #296

Merged
merged 1 commit into from
Jan 27, 2024

Conversation

nahueespinosa
Copy link
Member

Proposed changes

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.

Type of change

  • 馃悰 Bugfix (change which fixes an issue)
  • 馃殌 Feature (change which adds functionality)
  • 馃摎 Documentation (change which fixes or extends documentation)

Checklist

  • Lint and unit tests (if any) pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • All commits have been signed for DCO

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.

Signed-off-by: Nahuel Espinosa <nespinosa@ekumenlabs.com>
@nahueespinosa nahueespinosa added enhancement New feature or request cpp Related to C++ code labels Jan 27, 2024
@nahueespinosa nahueespinosa self-assigned this Jan 27, 2024
Copy link
Collaborator

@hidmic hidmic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing to add. Flawless.

@nahueespinosa nahueespinosa merged commit a819c82 into main Jan 27, 2024
8 checks passed
@nahueespinosa nahueespinosa deleted the nahuel/sample-view-extension branch January 27, 2024 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cpp Related to C++ code enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants