Celeritas 0.6.0-rc.2.10+develop.de0a3a05
|
Sample from a uniform radial distribution. More...
#include <RadialDistribution.hh>
Public Types | |
Type aliases | |
using | real_type = RealType |
using | result_type = real_type |
Public Member Functions | |
CELER_FUNCTION | RadialDistribution (real_type radius) |
Construct with defaults. | |
template<class Generator > | |
CELER_FUNCTION result_type | operator() (Generator &rng) |
CELER_FUNCTION real_type | radius () const |
Get the sampling radius. | |
template<class Generator > | |
CELER_FUNCTION auto | operator() (Generator &rng) -> result_type |
Sample a random number according to the distribution. | |
Sample from a uniform radial distribution.