Skip to content

refactor: use constants/float64/nan in stats/base/dists/poisson/variance - #17035

Open
chirag-433 wants to merge 1 commit into
stdlib-js:developfrom
chirag-433:refactor-poisson-variance-nan-clean
Open

chirag-433 wants to merge 1 commit into
stdlib-js:developfrom
chirag-433:refactor-poisson-variance-nan-clean

Conversation

@chirag-433

Copy link
Copy Markdown
Contributor

Resolves a part of #11743.

Description

What is the purpose of this pull request?

This pull request:

  • Replaces inline NaN generation in stats/base/dists/poisson/variance with STDLIB_CONSTANT_FLOAT64_NAN.
  • Adds the @stdlib/constants/float64/nan dependency to the package manifest.

Related Issues

Does this pull request have any related issues?

This pull request has the following related issues:

Reference Packages

Did the content of this pull request follow one or more existing packages? Answering is optional.

This pull request followed these packages:

What carried over from the reference(s)?

  • Added the float64 NaN constant header, replaced inline NaN generation with STDLIB_CONSTANT_FLOAT64_NAN, and added the constant package to the manifest dependencies.

What differed, or what did you have to work out yourself?

  • The Poisson variance package has build, benchmark, and examples configurations, so the dependency was added to all three entries in manifest.json.

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.

No.

Checklist

Please ensure the following tasks are completed before submitting this pull request.

AI Assistance

When authoring the changes proposed in this PR, did you use any kind of AI assistance?

  • Yes
  • No

If you answered "yes" above, how did you use AI assistance?

  • Code generation (e.g., when writing an implementation or fixing a bug)
  • Test/benchmark generation
  • Documentation (including examples)
  • Research and understanding

Disclosure

I used AI assistance to identify an eligible package, review the reference changes, and assist with the C source and manifest updates.


@stdlib-js/reviewers

@chirag-433
chirag-433 requested a review from a team December 1, 2026 06:18
@stdlib-bot stdlib-bot added Statistics Issue or pull request related to statistical functionality. Good First PR A pull request resolving a Good First Issue. Needs Review A pull request which needs code review. labels Dec 1, 2026
@stdlib-bot

Copy link
Copy Markdown
Contributor

Coverage Report

Package Statements Branches Functions Lines
stats/base/dists/poisson/variance $\\color{green}161/161$
$\\color{green}+100.00\\%$
$\\color{green}8/8$
$\\color{green}+100.00\\%$
$\\color{green}2/2$
$\\color{green}+100.00\\%$
$\\color{green}161/161$
$\\color{green}+100.00\\%$

The above coverage report was generated for the changes in this PR.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Good First PR A pull request resolving a Good First Issue. Needs Review A pull request which needs code review. Statistics Issue or pull request related to statistical functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants