feat: add C implementation for stats/base/dists/lognormal/logcdf#10882
Merged
Planeshifter merged 2 commits intoJul 5, 2026
Merged
Conversation
Contributor
Coverage Report
The above coverage report was generated for the changes in this PR. |
960fd26 to
36f518d
Compare
36f518d to
6ecc2de
Compare
Closed
6ecc2de to
e454f06
Compare
e454f06 to
14489bd
Compare
kgryte
reviewed
Apr 12, 2026
Member
There was a problem hiding this comment.
@rautelaKamal You need to revert many of the changes made to this file.
kgryte
reviewed
Apr 12, 2026
| } else { | ||
| delta = abs( y - expected[ i ] ); | ||
| tol = 1500.0 * EPS * abs( expected[ i ] ); | ||
| t.ok( delta <= tol, 'within tolerance. x: '+x[ i ]+'. mu: '+mu[i]+'. sigma: '+sigma[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' ); |
Member
There was a problem hiding this comment.
We should go ahead and migrate to using isAlmostSameValue for ULP-based testing.
Contributor
Author
There was a problem hiding this comment.
I've migrated the tests to use isAlmostSameValue for ULP-based testing in the latest push. This PR should be ready for re-review.
stats/base/dists/lognormal/logcdf
14489bd to
e705513
Compare
stats/base/dists/lognormal/logcdfe705513 to
635e533
Compare
7 tasks
7 tasks
Closed
7 tasks
Use the Unicode `µ`/`σ` symbols and the uppercase `ln(F(x;µ,σ))`
notation in the C example, matching the JS example in the same README
and the canonical `normal/logcdf` sibling.
---
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes.
report:
- task: lint_filenames
status: passed
- task: lint_editorconfig
status: passed
- task: lint_markdown_pkg_readmes
status: passed
- task: lint_markdown_docs
status: na
- task: lint_markdown
status: na
- task: lint_package_json
status: na
- task: lint_repl_help
status: na
- task: lint_javascript_src
status: na
- task: lint_javascript_cli
status: na
- task: lint_javascript_examples
status: na
- task: lint_javascript_tests
status: na
- task: lint_javascript_benchmarks
status: na
- task: lint_python
status: na
- task: lint_r
status: na
- task: lint_c_src
status: na
- task: lint_c_examples
status: passed
- task: lint_c_benchmarks
status: na
- task: lint_c_tests_fixtures
status: na
- task: lint_shell
status: na
- task: lint_typescript_declarations
status: passed
- task: lint_typescript_tests
status: na
- task: lint_license_headers
status: passed
---
36f7eaf to
c1be4c9
Compare
stats/base/dists/lognormal/logcdf
Contributor
PR Commit MessagePlease review the above commit message and make any necessary adjustments. |
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.
Description
What is the purpose of this pull request?
This pull request:
@stdlib/stats/base/dists/lognormal/logcdf). Following the pattern of the JS version, the C logic log-transforms the inputxand elegantly delegates to the existing C implementation of@stdlib/stats/base/dists/normal/logcdf.Related Issues
Does this pull request have any related issues?
This pull request has the following related issues:
Questions
Any questions for reviewers of this pull request?
No.
Other
Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.
AI Assistance Disclosure
If yes, how was AI used?
I used an AI coding assistant to help generate the C native addon boilerplate, manifest files, and safely mirror the JS test logic/R fixtures into the native test files. I manually reviewed all outputs and verified compilation.
Checklist