|
Celeritas 0.7.0-dev.172+develop.fe2a0acd4
|
Given a sampled CDF value, find the corresponding grid value. More...
#include <InverseCdfFinder.hh>
Public Member Functions | |
| CELER_FUNCTION | InverseCdfFinder (G &&grid, C &&calc_cdf) |
| Construct from grid and CDF calculator. | |
| CELER_FUNCTION real_type | operator() (real_type cdf) const |
| Find and interpolate the grid value corresponding to the given CDF. | |
Given a sampled CDF value, find the corresponding grid value.
| G | Grid, e.g. UniformGrid or NonUniformGrid |
| C | Calculate the CDF at a given grid index |
Both the input grid and the CDF must be monotonically increasing. The sampled CDF value must be in range.