Skip to content

feat: add candidateScoreNonWinnerQMHMGap to cast explanation (79797979)#750

Merged
chitcommit merged 1 commit into
mainfrom
auto/79797979-cast-explain-non-winner-qm-hm-gap
Jun 16, 2026
Merged

feat: add candidateScoreNonWinnerQMHMGap to cast explanation (79797979)#750
chitcommit merged 1 commit into
mainfrom
auto/79797979-cast-explain-non-winner-qm-hm-gap

Conversation

@chitcommit

Copy link
Copy Markdown
Contributor

Adds candidateScoreNonWinnerQMHMGap to the explain:true output of ch1tty/cast.

Field: candidateScoreNonWinnerQuadraticMean - candidateScoreNonWinnerHarmonicMean

  • Present when >= 3 candidates and all non-winner scores > 0
  • Always >= 0 (QM >= HM by Power Mean chain)
  • For n=3: sqrt((r²+t²)/2) - 2rt/(r+t)
  • Identity: gap + HM === QM
  • Additive decomposition: QMHMGap === QMGap + AMGMGap + GMHMGap
  • Always >= candidateScoreNonWinnerAMHMGap (QM >= AM)
  • Always >= candidateScoreNonWinnerQMGap (HM <= AM)
  • Widest single additive measure of non-winner Power Mean spread (full HM-to-QM range)

Tests (8/8): presence, bounds (>= 0), identity, n=3 formula, no_match absence, sub-3 absence, additive decomposition, description check.


Generated by Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@coderabbitai

coderabbitai Bot commented Jun 16, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@chitcommit, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 52 minutes and 56 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: ca85abe9-5cea-4bde-ac5e-1245e0533668

📥 Commits

Reviewing files that changed from the base of the PR and between 3dd3d06 and 5c94a10.

📒 Files selected for processing (2)
  • src/aggregator.ts
  • test/79797979-cast-explain-non-winner-qm-hm-gap.test.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch auto/79797979-cast-explain-non-winner-qm-hm-gap

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@chitcommit chitcommit merged commit 07e7bf8 into main Jun 16, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants