|
Celeritas 0.7.0-dev.157+develop.4240ae39b
|
Integrate a piecewise function. More...
#include <PdfUtils.hh>
Public Member Functions | |
| SegmentIntegrator (I &&integrate) | |
| Construct with integrator. | |
| template<class T , std::size_t N, std::size_t M> | |
| void | operator() (Span< T const, N > x, Span< T const, N > f, Span< T, M > dst, T init={}) |
| Integrate a function. | |
Integrate a piecewise function.
To construct a CDF, init should be zero, and the destination should be normalized by its final value afterward.