Skip to content

Improve Rician distribution#2039

Open
devmotion wants to merge 2 commits into
masterfrom
dmw/rician
Open

Improve Rician distribution#2039
devmotion wants to merge 2 commits into
masterfrom
dmw/rician

Conversation

@devmotion

Copy link
Copy Markdown
Member

Fixes #2035

Comment thread Project.toml
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
Copy Markdown
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
Copy Markdown
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

codecov-commenter commented Mar 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.76%. Comparing base (6b5aa0d) to head (be5b800).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2039      +/-   ##
==========================================
+ Coverage   86.74%   86.76%   +0.02%     
==========================================
  Files         149      149              
  Lines        8882     8896      +14     
==========================================
+ Hits         7705     7719      +14     
  Misses       1177     1177              

☔ View full report in Codecov by Harness.
📢 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