Celeritas 0.6.0-47+develop.b3cbb238
|
Sample one or more distributions, returning a histogram. More...
#include <HistogramSampler.hh>
Public Types | |
Type aliases | |
using | Dbl2 = Histogram::Dbl2 |
Public Member Functions | |
HistogramSampler (size_type num_bins, Dbl2 domain, size_type num_samples) | |
Construct with number of samples. | |
template<class DistributionT > | |
SampledHistogram | operator() (DistributionT &&sample_from) |
Sample from and accumulate the given distribution. | |
template<class TransformT , class DistributionT > | |
SampledHistogram | operator() (TransformT &&transform, DistributionT &&sample_from) |
Sample from and accumulate the given distribution using a transform. | |
Sample one or more distributions, returning a histogram.