Skip to content

fix: correct random/streams/poisson keyword from continuous to discrete#12410

Draft
Planeshifter wants to merge 1 commit into
developfrom
philipp/drift-random-streams-2026-06-01
Draft

fix: correct random/streams/poisson keyword from continuous to discrete#12410
Planeshifter wants to merge 1 commit into
developfrom
philipp/drift-random-streams-2026-06-01

Conversation

@Planeshifter
Copy link
Copy Markdown
Member

Description

This pull request:

  • Corrects a keyword mismatch in @stdlib/random/streams/poisson: replaces "continuous" with "discrete" in package.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/poisson into conformance with 31/41 sibling packages in random/streams/ and with the corresponding random/iter, random/array, and random/strided Poisson 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 the keywords array of this package.

Checklist

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

This PR was authored by Claude Code, running a cross-package API drift detection routine across the @stdlib/random/streams namespace. The routine identified random/streams/poisson as a single-feature outlier (keyword classification), confirmed via cross-reference against sibling random/{iter,array,strided}/poisson packages, and applied the mechanical one-line fix. Two validation passes (cross-reference and structural review) confirmed confirmed-drift before the change was committed.


@stdlib-js/reviewers


Generated by Claude Code

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
@stdlib-bot
Copy link
Copy Markdown
Contributor

Coverage Report

Package Statements Branches Functions Lines
random/streams/poisson $\color{green}812/812$
$\color{green}+100.00\%$
$\color{green}92/92$
$\color{green}+100.00\%$
$\color{green}15/15$
$\color{green}+100.00\%$
$\color{green}812/812$
$\color{green}+100.00\%$

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

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.

3 participants