fix: correct random/streams/poisson keyword from continuous to discrete#12410
Draft
Planeshifter wants to merge 1 commit into
Draft
fix: correct random/streams/poisson keyword from continuous to discrete#12410Planeshifter wants to merge 1 commit into
random/streams/poisson keyword from continuous to discrete#12410Planeshifter wants to merge 1 commit into
Conversation
Replace the `continuous` keyword with `discrete` in `@stdlib/random/streams/poisson` to reflect the fact that the Poisson distribution has discrete (non-negative integer) support. All other discrete-distribution packages in `@stdlib/random/streams` (`bernoulli`, `binomial`, `discrete-uniform`, `geometric`, `hypergeometric`, `negative-binomial`, `randi`) use `discrete`, and the sibling `random/iter/poisson`, `random/array/poisson`, and `random/strided/poisson` packages also use `discrete`. The prior `continuous` keyword appears to be a copy-paste oversight (drift conformance: 31/41 sibling packages use a distribution-class keyword consistent with their support). https://claude.ai/code/session_01BTTDiC5C9zLzcmWNQQd1tf
Contributor
Coverage Report
The above coverage report was generated for the changes in this PR. |
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
This pull request:
@stdlib/random/streams/poisson: replaces"continuous"with"discrete"inpackage.json. The Poisson distribution has discrete (non-negative integer) support, and all other discrete-distribution stream packages (bernoulli,binomial,discrete-uniform,geometric,hypergeometric,negative-binomial,randi) already use the"discrete"keyword. This change brings@stdlib/random/streams/poissoninto conformance with 31/41 sibling packages inrandom/streams/and with the correspondingrandom/iter,random/array, andrandom/stridedPoisson packages.Related Issues
None.
Questions
No.
Other
Single-line metadata correction in
package.json; no source, tests, examples, or documentation are touched. No tests or downstream consumers read thekeywordsarray of this package.Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
This PR was authored by Claude Code, running a cross-package API drift detection routine across the
@stdlib/random/streamsnamespace. The routine identifiedrandom/streams/poissonas a single-feature outlier (keyword classification), confirmed via cross-reference against siblingrandom/{iter,array,strided}/poissonpackages, and applied the mechanical one-line fix. Two validation passes (cross-reference and structural review) confirmedconfirmed-driftbefore the change was committed.@stdlib-js/reviewers
Generated by Claude Code