| Celeritas 0.7.0-dev.170+develop.df22d2a88
    | 
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. UniformGridorNonUniformGrid | 
| 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.