Conversation
- Fix Distribution.new() shared singleton mutation (#1) - Fix Box-Muller and logistic log(0) singularity (#2) - Fix pickWeighted masking to redistribute proportionally (#3) - Deep-clone gram distributions in MarkovChain.clone() (#4) - Fix blend weight renormalization for geometric/harmonic (#5, #6) - Fix single-distribution blend reference leak (#10) - Fix ImmutableMultiDimMarkovChain engine sharing (#7) - Add parameter validation to all 14 sampler methods (#11) - Add stateKeyRegistry collision detection + unregisterStateKey (#13) - Add generate() min/max validation + empty-string rejection (#14) - Add Weibull 3-parameter location support (#18) - Document `as this` subclass limitation on immutable variants (#8) - Add NaN/Infinity validation to Distribution.addSourceValues/addNormalValues Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Document MultiDimMarkovChain.addSequence clone-on-write asymmetry (#9) - Add delimiter collision warning in addSequence (#12) - Add maxOrder > 0 validation in MarkovChain constructor/new (#14) - Document Poisson draw count divergence (#15) - Rename truncatedNormal → clampedNormal, keep deprecated alias (#16) - Optimize ImmutableMultiDimMarkovChain.addSequence (#17) - Document MT_PREWARM constant rationale (#19) - Document analyze() PRNG side effects (#20) - Document constraint retry cap in generate() (#21) - Document PRNG correlation on fork for immutable variants (#22) - Export MersenneTwister19937 and createEntropy for advanced use (#23) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Mark internal static methods and DTO types with @internal (#24, #25) - Convert Distribution.pick and MarkovChain.new to options objects (#26) - Replace MCInsertOption boolean|string with false|string union (#28) - Add int()/float() aliases on Random, mark real()/integer() internal (#30) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…king - 12 distribution shape tests: mean/variance/range over 10k samples - Blend strategy validation: arithmetic 50/50, geometric/harmonic sanity - Masking proportional redistribution test over 10k picks Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Extract validateWeights() in distribution.ts to deduplicate NaN/Infinity checks - Extract arithmeticMean() in blend.ts to deduplicate 3 identical reduces - Fix bool() to use this.real() instead of bypassing instance method - Remove leftover commented-out code in distribution.ts Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add tests for Random.int/float aliases and pickWeighted edge cases - Add sampleDistribution tests for all remaining distribution types - Test RandomSampler.engine getter - Remove unused bool() export from mersenne-twister Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The pre-filter at L83-91 already excludes entries with value <= 0, making the subsequent nonZeroValues check always true. Removed the dead else branches to improve coverage and reduce confusion. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Move hand-written docs from readme/ to docs/ - Typedoc now outputs to .site/ (gitignored) - Update CI workflow, package.json clean script, readme links - docs/.local/ remains gitignored for planning files Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Fix all 15 prettier formatting errors across 5 files - Consolidate 4 separate CI jobs into one sequential pipeline per node version (lint → typecheck → test → build) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
docs/for documentation,.site/for typedoc outputdocs/.local/Commits (13)
Test plan
🤖 Generated with Claude Code