Skip to content

Improve Rician distribution#2039

Open
devmotion wants to merge 1 commit intomasterfrom
dmw/rician
Open

Improve Rician distribution#2039
devmotion wants to merge 1 commit intomasterfrom
dmw/rician

Conversation

@devmotion
Copy link
Member

Fixes #2035

ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
DensityInterface = "b429d917-457f-4dbc-8f4c-0cc954292b1d"
FillArrays = "1a297f60-69ca-5386-bcde-b61e274b549b"
HypergeometricFunctions = "34004b35-14d8-5ef3-9330-4cdb6864b03a"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already an indirect dependency via StatsFuns

Comment on lines +29 to +30
@test all(splat(isapprox), zip(ccdf.(d1, xs), @. exp(-xs^2/200)))
@test all(splat(isapprox), zip(logccdf.(d1, xs), @. -xs^2/200))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fallbacks are too inaccurate, without dedicated overloads for ccdf and logccdf these tests fail.

@codecov-commenter
Copy link

codecov-commenter commented Mar 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.48%. Comparing base (71309bc) to head (e70f61e).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2039      +/-   ##
==========================================
+ Coverage   86.45%   86.48%   +0.03%     
==========================================
  Files         147      147              
  Lines        8838     8852      +14     
==========================================
+ Hits         7641     7656      +15     
+ Misses       1197     1196       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

Rician logpdf inaccurate

2 participants