Conversation
Moved the JS `## Examples` section above `## C APIs` to match the namespace-wide README section ordering (contiguous `## Usage` -> `## Examples` appears in 12/14 chisquare packages, 86%). No content changes; purely reordering.
…ions Added missing `chi-square` (present in 13/14 siblings, 93%) and `chisq` (11/14, 79%) to the keywords list. Both are standard chi-squared-distribution aliases already present in the other majority patterns.
…entions Added missing `chisq` keyword (present in 11/14 siblings, 79%). The package already lists `chisquare`, `chisquared`, `chi-square`, and `chi-squared`, so the short-form alias was the sole omission relative to the majority pattern.
…ntions Added missing `chi-squared` (present in 13/14 siblings, 93%) and `chisq` (11/14, 79%) to the keywords list. Both are standard chi-squared-distribution aliases and complete the chi-* cluster already present in the package.
Contributor
Coverage Report
The above coverage report was generated for the changes in this PR. |
stats/base/dists/chisquare with namespace majority patternsstats/base/dists/chisquare packages
kgryte
approved these changes
Apr 23, 2026
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
Aligning outliers in
stats/base/dists/chisquarewith namespace majority patterns (random namespace pick, seed20260423).Namespace summary
stats/base/dists/chisquarepackage.jsontop-level /scripts/stdlib/keywords,manifest.jsonshape, README##/###heading order,test//benchmark//examples/filenames, public JSDoc signature, validation prologue, error construction,@returns/@param/@throws/@examplepresence,@stdlib/*source imports.package.jsontop-level keys (100%), majority file set (README.md,benchmark/benchmark.js,docs/repl.txt,docs/types/*,examples/index.js,lib/{index,main}.js,test/test.jsat 100%; Julia test fixtures at 86%), contiguous## Usage → ## ExamplesREADME subsequence (86%), keyword set (chi-square93%,chi-squared93%,chisq79%, etc.).Usage → Examples → C APIs(9/14 = 64%);package.jsonscripts/stdlibinner keys (all empty).Per-outlier drift corrections
cdf
Reorders the top-level README sections to match the convention used across the namespace:
## Examplesnow follows## Usagedirectly, with## C APIsplaced afterward. No content changes.ctor
Adds
chi-square(missing in 1/14, majority 93%) andchisq(missing in 3/14, majority 79%) to thekeywordsarray. Fills in the chi-* alias cluster alongside the existingchisquare,chisquared, andchi-squaredentries.entropy
Adds
chisqto thekeywordsarray inpackage.json, bringing the package in line with 11 of 14 siblings in thestats/base/dists/chisquarenamespace that already include this short-form alias. The omission was the sole drift item relative to peer packages.median
Adds
chi-squaredandchisqto thekeywordsarray in@stdlib/stats/base/dists/chisquare/median, aligning with 13/14 and 11/14 sibling packages in the namespace respectively. Keeps the chi-* keyword cluster consistent across the distribution family.Validation
Checked:
package.jsonshape, README heading order, test/benchmark/example filenames,manifest.jsonshape).@stdlib/*imports).Deliberately excluded:
ctor/median/pdf/quantilelack addons for genuine reasons and the sample is too close to the cutoff to infer drift).ctorREADME shape (different by design — class/constructor layout rather than function docs).stdevJulia test fixtures (stdevcurrently tests against Python-generated reference data; switching fixture generators would cascade into regeneratedtest.jsdata — out of scope).entropy/kurtosis/skewnessPositiveNumberparameter types (semantically correct: division by zero / log of zero atk = 0, soNonNegativeNumberwould be a type lie).Related Issues
No.
Questions
No.
Other
Raised by the cross-package API drift-detection routine. Random namespace selection seeded with
20260423; the full drift report with every feature's conformance percentage, outlier list, and dropped-correction log is archived locally under~/drift-reports/.One commit per outlier package, in the stdlib convention:
style:prefix, imperative subject with the package name in backticks, body citing the specific drift items corrected and the majority conformance percentage for each.Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
This PR was produced by Claude Code running the cross-package API drift-detection routine: structural + semantic feature extraction per package, 75% majority-vote, three-agent drift validation (opus semantic, opus cross-reference, sonnet structural), and per-package corrections. Human maintainer review required before promotion out of draft.
@stdlib-js/reviewers
Generated by Claude Code