You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- _math.py: add prior_count param to percent_change(); formula becomes
(x - y) / (y + prior_count), dampening explosion when ref_mean ≈ 0
- __init__.py: add ValueError guard for negative prior_count; thread
prior_count through all three percent_change call sites (_pdex_ref,
_pdex_all, _pdex_on_target); expand prior_count docstring with
recommended usage (start with 0.5, combine with min_mean_expression
for full suppression)
- CLAUDE.md: update percent_change schema formula to show prior_count
- tests/test_math.py: add TestPercentChangeWithPriorCount (4 unit tests)
- tests/test_pdex.py: add test_negative_prior_count_raises to validation suite
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments