Repository navigation
Conversation
jmh530
force-pushed
the
codex/poisson-mode-prototype
branch
from
November 16, 2026 20:27
5d37924 to
e4d40aa
Compare
For finite rates of 1024 or greater, sum relative masses outward from the mode and bound the omitted mass on both sides. Return found only when the bounds certify both independently rounded tails or the least count whose exact CDF reaches the query probability. Use a fixed rate threshold so changing maxTerms keeps the same algorithm. Keep the 1024-term ceiling and use fixed stack storage by replaying weights from the mode during the inverse search. Cover rates on either side of the threshold, adjacent work budgets, and adjacent probabilities at rate 2000 whose inverse counts differ. AI-Assisted-By: Codex (GPT-6 Astra Medium)
jmh530
force-pushed
the
codex/poisson-mode-prototype
branch
from
November 16, 2026 21:22
e4d40aa to
620b8d5
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
Extend
poissonTailsCheckedandpoissonInvCDFCheckedfor finiteFprates of 1,024 or greater. Previously, these rates returnedworkLimitfor interior queries even at the maximum term budget. At rate 2,000,Fp!64now certifies both tails at the mode within 1,024 terms and finds the median within the default 256.The calculation starts at
floor(lambda), sums relative masses outward, and bounds the omitted mass on each side. It returnsfoundwhen both tails are certified to round correctly, or when it proves the least count whose exact CDF reaches the inverse query. The inverse search replays weights from the mode using fixed stack storage.Rates below 1,024 continue to use the existing sum from zero. The fixed rate threshold keeps algorithm selection independent of
maxTerms. Both methods retain the 1,024-term ceiling and returnworkLimitwhen the bounds are inconclusive.Regression tests cover rates immediately below, at, and above the threshold. At rate 2,000, two adjacent
Fp!64probabilities yield inverse counts of 2,000 and 2,001, exercising the distinction between the exact CDF and its rounded value.Validation on Windows:
Refs #157.
AI-Assisted-By: Codex (GPT-6 Astra Medium)