Skip to content

test: lock gamma log probability accuracy#14

Merged
kholdrex merged 1 commit into
masterfrom
fix/accurate-gamma-ln
Jun 5, 2026
Merged

test: lock gamma log probability accuracy#14
kholdrex merged 1 commit into
masterfrom
fix/accurate-gamma-ln

Conversation

@kholdrex

@kholdrex kholdrex commented Jun 4, 2026

Copy link
Copy Markdown
Member

Summary

Adds regression coverage for absolute log-probability values that depend on the crate's log-gamma helper. The checks lock expected values for continuous and discrete distributions so future numerical changes are easier to validate.

Changes

  • Clarifies the Lanczos approximation constants used by the private log-gamma helper.
  • Adds absolute log-probability assertions for Gamma, Beta, Student-t, Poisson, Binomial, and binomial-coefficient paths.
  • Documents how decimal expectations were derived for independent re-verification.

Test Plan

  • Rust formatting check passed.
  • Clippy passed with all targets and all features.
  • Full test suite passed with all features.
  • Documentation build passed with warnings denied.
  • Benchmark targets compiled successfully.

@kholdrex kholdrex merged commit b21c4f6 into master Jun 5, 2026
7 checks passed
@kholdrex kholdrex deleted the fix/accurate-gamma-ln branch June 5, 2026 00:38
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.

1 participant