docs: fix scale parameter reference in @stdlib/stats/base/dists/levy/entropy#12258
Merged
Merged
Conversation
…/entropy` Update the description in `lib/main.js` and `docs/types/index.d.ts` to reference the scale parameter as `c`, matching the function signature and the convention used by sibling packages in `@stdlib/stats/base/dists/levy/*` (10/11 = 91%). The `s` appears to be a copy-paste artifact from sibling distributions (e.g., logistic, frechet) whose scale parameter is named `s`.
Contributor
Coverage Report
The above coverage report was generated for the changes in this PR. |
kgryte
approved these changes
May 24, 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
This pull request:
@stdlib/stats/base/dists/levy/entropyto reference the scale parameter asc, matching the function signature and the convention used by the other 10 of 11 sibling packages under@stdlib/stats/base/dists/levy/*(91% conformance).entropyThe description in
lib/main.jsanddocs/types/index.d.tsreferenced the scale parameter ass, but the function signature names itc. Thesis a copy-paste artifact from sibling distributions whose scale parameter is genuinely nameds(e.g.,logistic,frechet). Two-line fix; no behavior, signature, or test change.Related Issues
No.
Questions
No.
Other
The same typo is propagated into the parent aggregator
lib/node_modules/@stdlib/stats/base/dists/levy/docs/types/index.d.ts(line 73). That file is outside this PR's scope (sibling-package drift only); leaving as a separate follow-up.Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
This PR was authored by Claude Code via an automated cross-package drift-detection routine: structural and semantic features were extracted across the 12 child packages of
@stdlib/stats/base/dists/levy/, the majority pattern per feature was identified, andentropy's JSDoc description was flagged as the lone deviator (1 of 11) on the scale-parameter reference. The fix was applied mechanically and validated against sibling source.Generated by Claude Code