feat: add stats/base/dists/wald/cdf#9709
Draft
Neerajpathak07 wants to merge 9 commits intostdlib-js:developfrom
Draft
feat: add stats/base/dists/wald/cdf#9709Neerajpathak07 wants to merge 9 commits intostdlib-js:developfrom
stats/base/dists/wald/cdf#9709Neerajpathak07 wants to merge 9 commits intostdlib-js:developfrom
Conversation
Contributor
Coverage Report
The above coverage report was generated for the changes in this PR. |
Member
Author
|
Given that the CI error is not due to changes in this PR will go ahead and open it for review!! |
Neerajpathak07
commented
Jan 13, 2026
| z = sqrt( lambda / x ); | ||
|
|
||
| // Φ(a) = 0.5 * erfc( -a / sqrt( 2 ) ) | ||
| t1 = 0.5 * erfc( ( -z * ( ( x / mu ) - 1.0 ) ) / sqrt( 2.0 ) ); |
Member
Author
Member
Author
There was a problem hiding this comment.
Could have used stats/base/dists/normal/cdf but while writing the C implementation using normal_cdf into the equation causes discrepancy in the return values.
Neerajpathak07
commented
Jan 13, 2026
Comment on lines
+115
to
+116
| y = mycdf( 8.0 ); | ||
| // returns ~0.999 |
Member
Author
There was a problem hiding this comment.
Throws an error if 0.998 is rounded of to 1.000 so used this instead!!
Planeshifter
requested changes
Jan 13, 2026
Member
Planeshifter
left a comment
There was a problem hiding this comment.
Left a bunch of comments. Thanks!
Member
Author
|
@Planeshifter Updated the changes. But, benchmarks do seem to fail but runs clean locally. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Progresses #209.
Description
This pull request:
stats/base/dists/wald/cdfRelated Issues
This pull request has the following related issues:
Questions
No.
Other
No.
Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
{{TODO: add disclosure if applicable}}
@stdlib-js/reviewers