Repository navigation
Add probability distributions: PDF, CDF, Quantile - #21
Merged
Merged
Conversation
- NormalDistribution, BinomialDistribution, PoissonDistribution, UniformDistribution, ExponentialDistribution as self-quoting markers, matching CortexJS's calling convention - PDF needs no optional dependency for any distribution; discrete PDF uses a log-space reformulation (the direct formula overflows a float at n as low as 10,000) - Binomial/Poisson's CDF and Quantile reuse the existing GammaRegularized/BetaRegularized identities and require the special-functions extra; the other three distributions don't - Quantile search for discrete distributions via doubling-then- bisect, matching _is_figurate's existing pattern Verified against CortexJS's documented examples. 802 tests pass (784 existing + 18 new), 2 skipped.
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.
Adds NormalDistribution, BinomialDistribution, PoissonDistribution, UniformDistribution, ExponentialDistribution as self-quoting markers, plus PDF/CDF/Quantile to query them - matching CortexJS's own calling convention (e.g. ["CDF", ["NormalDistribution", 0, 1], 1.5]).
Verified against CortexJS's documented examples. 802 tests pass (784 existing + 18 new), 2 skipped.