Skip to content

fix: restore missing normalization of Dirichlet samples#378

Merged
YeungOnion merged 1 commit into
statrs-dev:masterfrom
andersk:dirichlet
Jul 1, 2026
Merged

fix: restore missing normalization of Dirichlet samples#378
YeungOnion merged 1 commit into
statrs-dev:masterfrom
andersk:dirichlet

Conversation

@andersk

@andersk andersk commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

This was broken by commit a239ebe (#253, cc @YeungOnion).

This was broken by commit a239ebe
(statrs-dev#253).  Fixes statrs-dev#344.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
@YeungOnion

Copy link
Copy Markdown
Contributor

Ah of course! Thanks for the fix.

@YeungOnion

Copy link
Copy Markdown
Contributor

If you would, another PR with a test for this would be great. You wouldn't even need fixed seed for this one since it's a constraint for each output.

@codecov

codecov Bot commented Jul 1, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 94.39%. Comparing base (e9b5209) to head (637a6f5).

Files with missing lines Patch % Lines
src/distribution/dirichlet.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #378      +/-   ##
==========================================
- Coverage   94.39%   94.39%   -0.01%     
==========================================
  Files          59       59              
  Lines       12981    12982       +1     
==========================================
  Hits        12254    12254              
- Misses        727      728       +1     

☔ 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.

@YeungOnion YeungOnion merged commit 75303bb into statrs-dev:master Jul 1, 2026
6 of 8 checks passed
@andersk

andersk commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

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.

Dirichlet::sample() is incorrect

2 participants