|
Celeritas 0.7.0-dev.164+develop.929c81eeb
|
#include <type_traits>#include "corecel/cont/Range.hh"#include "corecel/math/Algorithms.hh"#include "corecel/math/SoftEqual.hh"#include "corecel/random/distribution/GenerateCanonical.hh"
Classes | |
| class | celeritas::Selector< F, T > |
| On-the-fly selection of a weighted discrete distribution. More... | |
Enumerations | |
| enum class | celeritas::SelectorNormalization { unnormalized , normalized } |
| Whether to allow a "remainder" element. More... | |
Functions | |
| template<class F , class T > | |
| CELER_FUNCTION Selector< F, T > | celeritas::make_selector (F &&func, T size, real_type total=1) |
| Create a normalized on-the-fly discrete PDF sampler. | |
| template<class F , class T > | |
| CELER_FUNCTION Selector< F, T > | celeritas::make_unnormalized_selector (F &&func, T size, real_type total) |
Create an unnormalized selector that can return size if past the end. | |
|
strong |