Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a helper class for inverse transform sampling #1525

Merged
merged 6 commits into from
Nov 29, 2024

Conversation

amandalund
Copy link
Contributor

Pulling this out from #1518: this adds a little class to find the interpolated grid value corresponding to a sampled CDF value to help with inverse transform sampling from a tabulated CDF.

@amandalund amandalund added physics Particles, processes, and stepping algorithms minor Minor internal changes or fixes labels Nov 28, 2024
Copy link

github-actions bot commented Nov 28, 2024

Test summary

 3 861 files   5 953 suites   4m 10s ⏱️
 1 599 tests  1 571 ✅ 28 💤 0 ❌
19 808 runs  19 733 ✅ 75 💤 0 ❌

Results for commit 8188777.

♻️ This comment has been updated with latest results.

Copy link
Member

@sethrj sethrj left a comment

Choose a reason for hiding this comment

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

Nifty, thanks!

src/celeritas/grid/InverseCdfFinder.hh Outdated Show resolved Hide resolved
test/celeritas/grid/InverseCdfFinder.test.cc Show resolved Hide resolved
src/celeritas/grid/InverseCdfFinder.hh Show resolved Hide resolved
src/celeritas/grid/InverseCdfFinder.hh Show resolved Hide resolved
@sethrj sethrj merged commit 90ed620 into celeritas-project:develop Nov 29, 2024
35 checks passed
@amandalund amandalund deleted the cdf-finder branch November 30, 2024 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Minor internal changes or fixes physics Particles, processes, and stepping algorithms
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants