Skip to content

Fix for 10965 - extended normalDistribution domain support to +/-inf#10966

Merged
thewilsonator merged 1 commit intodlang:stablefrom
tedgin:10965
Feb 28, 2026
Merged

Fix for 10965 - extended normalDistribution domain support to +/-inf#10966
thewilsonator merged 1 commit intodlang:stablefrom
tedgin:10965

Conversation

@tedgin
Copy link
Contributor

@tedgin tedgin commented Feb 28, 2026

normalDistribution now maps -real.infinity to 0 and +real.infinity to 1.

This resolves issue #10965, and it may be close upon merge.

@dlang-bot
Copy link
Contributor

Thanks for your pull request and interest in making D better, @tedgin! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please verify that your PR follows this checklist:

  • My PR is fully covered with tests (you can see the coverage diff by visiting the details link of the codecov check)
  • My PR is as minimal as possible (smaller, focused PRs are easier to review than big ones)
  • I have provided a detailed rationale explaining my changes
  • New or modified functions have Ddoc comments (with Params: and Returns:)

Please see CONTRIBUTING.md for more information.


If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment.

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "stable + phobos#10966"

@thewilsonator thewilsonator linked an issue Feb 28, 2026 that may be closed by this pull request
@thewilsonator thewilsonator merged commit 12eb40b into dlang:stable Feb 28, 2026
9 of 10 checks passed
@tedgin tedgin deleted the 10965 branch March 1, 2026 00:04
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.

normalDistribution doesn't handle edge cases ±∞

3 participants