Skip to content

chore: add missing metadata keywords to stats/base/ndarray/dmeanstdev - #14760

Draft
Planeshifter wants to merge 1 commit into
developfrom
philipp/drift-stats-base-ndarray-2026-08-29
Draft

chore: add missing metadata keywords to stats/base/ndarray/dmeanstdev#14760
Planeshifter wants to merge 1 commit into
developfrom
philipp/drift-stats-base-ndarray-2026-08-29

Conversation

@Planeshifter

Copy link
Copy Markdown
Member

Description

What is the purpose of this pull request?

This pull request adds the standard stdmath, mathematics, and math keywords to the package.json of stats/base/ndarray/dmeanstdev, the sole member of the 193-package stats/base/ndarray namespace that omitted them (99.5% sibling conformance). Metadata-only; no runtime behavior changes.

Related 问题

Does this pull request have any related issues?

No.

Questions

Any questions for reviewers of this pull request?

No.

Other

Any other information relevant to this pull request?

stats/base/ndarray/dmeanstdev

dmeanstdev carried a truncated keyword block missing stdmath, mathematics, and math — tags all 192 of its siblings use, including the dmean and dstdev reductions it combines. The omission is an authoring oversight, not a semantic distinction: the package computes the arithmetic mean and corrected sample standard deviation, squarely math and statistics. Restoring the three keywords aligns discoverability with the rest of the namespace and touches nothing else.

The correction was surfaced by a majority-vote drift scan: structural and semantic features were extracted from all 193 namespace members, the per-feature majority (≥75%) computed, and outliers validated before any change. This was the only high-signal, mechanical, non-behavioral correction to survive filtering. Candidate additions of the empty __stdlib__ manifest key to three members were deliberately dropped — that field is present in under 40% of stdlib packages ecosystem-wide, so its local absence is not treated as drift. Signature differences (the *-by accessor variants) and native-only artifacts were excluded as intentional deviations, and features without a clear majority (README References/C APIs sections) were excluded from the vote.

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

If you answered "yes" to using AI assistance, please provide a short disclosure indicating how you used AI assistance.

This PR was produced by an automated stdlib cross-package drift-detection routine running on Claude Code. The routine extracted per-package structural and semantic features across the stats/base/ndarray namespace, computed the majority convention per feature, validated the single surviving metadata outlier through independent review passes, and applied the mechanical keyword fix. The change was verified against the sibling majority pattern before submission.


@stdlib-js/reviewers


Generated by Claude Code

Add the standard `stdmath`, `mathematics`, and `math` discoverability
keywords to the package manifest. These keywords are present in 192 of
193 sibling packages (99.5%) in the `stats/base/ndarray` namespace,
including the `dmean` and `dstdev` packages whose computations this
reduction combines; `dmeanstdev` was the sole member omitting them.
Metadata-only change; no runtime behavior is affected.
@stdlib-bot stdlib-bot added the Statistics Issue or pull request related to statistical functionality. label Aug 29, 2026
@stdlib-bot

Copy link
Copy Markdown
Contributor

Coverage Report

Package Statements 分支 Functions Lines
stats/base/ndarray/dmeanstdev $\\color{green}131/131$
$\\color{green}+100.00\\%$
$\\color{green}3/3$
$\\color{green}+100.00\\%$
$\\color{green}1/1$
$\\color{green}+100.00\\%$
$\\color{green}131/131$
$\\color{green}+100.00\\%$

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

注册 for free to join this conversation on GitHub. Already have an account? 登录 to comment

标签

Statistics Issue or pull request related to statistical functionality.

项目

None yet

Development

Successfully merging this pull request may close these issues.

3 participants