docs: propagate description and example fixes in stats/base/dists/*#12132
Merged
Conversation
…}/pdf` descriptions Propagates fix from 4728aa8 ("docs: collapse double spaces in `strided/napi/{binary,smskmap,unary}`") to sibling distribution PDF packages whose `package.json` descriptions contained a stray double space.
…mal/*` and `rayleigh/*`
Propagates fix from 3220a54 ("chore: propagate `ndarray/*` and `normal/*` fixes") to the C examples for sibling positive-scale distributions, raising the sigma lower bound from `0.0` to `0.1` so generated values stay within the strictly-positive domain.
…reto-type1}/logcdf` Propagates fix from f2c2f39 ("docs: normalize description in `stats/base/dists/exponential/logcdf`") to sibling `logcdf` packages, rewriting the README tagline, JSDoc summary, and `package.json` description into the canonical "<DistName> distribution logarithm of cumulative distribution function (CDF)." form (incidentally fixing the pre-existing missing-space typo `CDF)for` in both `package.json` files).
Contributor
Coverage Report
The above coverage report was generated for the changes in this PR. |
kgryte
reviewed
May 14, 2026
|
|
||
| /** | ||
| * Natural logarithm of the cumulative distribution function (CDF) for a discrete uniform distribution. | ||
| * Discrete uniform distribution logarithm of cumulative distribution function (CDF). |
Member
There was a problem hiding this comment.
I am not wholly convinced that this is actually a better/preferred description practice. It reads more awkwardly than what we had before.
Member
There was a problem hiding this comment.
I think this is based on "Discrete uniform distribution cumulative distribution function" which does read fine. Once you start throwing in other qualifiers, it starts straining the English language, making an awkward construction.
kgryte
approved these changes
May 14, 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.
Propagating fixes merged to
developbetween 2026-05-13 20:52 PDT (360877d) and 2026-05-14 02:11 PDT (80b1ef7) to sibling packages.Description
stats/base/dists/{gamma,pareto-type1}/pdfPropagates the double-space collapse from 4728aa8 to two additional
package.jsondescription fields that contain the same defect: an errant double space between the distribution name and the word "distribution". Both packages are updated to be consistent with the fix applied in the source commit.lib/node_modules/@stdlib/stats/base/dists/gamma/pdflib/node_modules/@stdlib/stats/base/dists/pareto-type1/pdfstats/base/dists/{lognormal,rayleigh}/*Propagates the sigma lower-bound fix from 3220a54 to 17 sibling C example files. Prior to that fix, sigma was generated from
[0.0, upper], allowing a value of0.0which falls outside the strictly-positive support required by bothlognormalandrayleighdistributions; the lower bound is raised to0.1to guarantee a valid scale parameter.lognormal/{mode,variance,skewness,mean,stdev,entropy,median}rayleigh/{pdf,mode,variance,kurtosis,cdf,mean,entropy,logcdf,logpdf,median}stats/base/dists/{discrete-uniform,pareto-type1}/logcdfPropagates the description normalization from f2c2f39 to two sibling
logcdfpackages, aligning the README tagline, JSDoc@modulesummary, andpackage.jsondescription to the canonical form"<DistName> distribution logarithm of cumulative distribution function (CDF).". As a side effect, this fixes the pre-existingCDF)formissing-space typo in bothpackage.jsonfiles.lib/node_modules/@stdlib/stats/base/dists/discrete-uniform/logcdflib/node_modules/@stdlib/stats/base/dists/pareto-type1/logcdfRelated Issues
None.
Questions
None.
Other
Validation
Audited the 24-hour window (
360877d..80b1ef7, 15 first-parent commits) for propagable fix patterns. Three patterns surfaced: the double-space collapse from 4728aa8, the sigma lower-bound fix from 3220a54, and thelogcdfdescription normalization from f2c2f39. Search was scoped to sibling packages understats/base/dists/*. Two independent validators read each candidate site in full and confirmed the defect; an adaptation pass produced per-site patches for the description-normalization pattern; a style-consistency pass reviewed each proposed patch.Items deliberately excluded:
logcdfpackages (t,normal,lognormal,kumaraswamy) where the source rewrite is not a clean substitution —t/logcdfandkumaraswamy/logcdfintroduce extra phrasing ("(CDF)" parenthetical, leading "Evaluate" verb), andnormal/logcdf/lognormal/logcdfREADMEs do not wrap "cumulative distribution function" in a reference link. Flagged for human review by the validation pass.normalwas the source;lognormalandrayleighare the only siblings whose C examples generatesigma = random_uniform( 0.0, ... )).numpy.nanskeyword removal from 65cbb12 — no siblingpackage.jsonfiles referencenumpy.nans.feat:), namespace/ToC updates, or chores touching onlypackage.jsonkeywords (00769bf) — none carry a propagable defect pattern.Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
This PR was authored by Claude Code as part of an automated daily propagation pass over commits merged to
develop. Each propagation site was independently verified by two validators reading the target file in full, an adaptation pass produced per-site patches where the source fix was not verbatim-applicable, and a style-consistency pass reviewed the resulting changes before they were applied. The PR is being opened as a draft for human audit; please do not promote to ready-for-review until the changes have been confirmed.Generated by Claude Code