|
ACTS
Experiment-independent tracking
|
Draw random numbers from a Landau distribution. More...
#include <ActsFatras/Utilities/LandauDistribution.hpp>
Classes | |
| struct | param_type |
| Parameter struct that contains all distribution parameters. More... | |
Public Types | |
| using | result_type = double |
| The type of the generated values. | |
Public Member Functions | |
| LandauDistribution ()=default | |
| LandauDistribution (const LandauDistribution &)=default | |
| Copy constructor. | |
| LandauDistribution (const param_type &cfg) | |
| Construct from a parameter object. | |
| LandauDistribution (double location, double scale) | |
| Construct directly from the distribution parameters. | |
| LandauDistribution (LandauDistribution &&)=default | |
| Move constructor. | |
| result_type | max () const |
| The maximum value the distribution generates. | |
| result_type | min () const |
| The minimum value the distribution generates. | |
| template<typename Generator> | |
| result_type | operator() (Generator &generator) |
| Generate a random number from the configured Landau distribution. | |
| template<typename Generator> | |
| result_type | operator() (Generator &generator, const param_type ¶ms) |
| Generate a random number from the given Landau distribution. | |
| LandauDistribution & | operator= (const LandauDistribution &)=default |
| Copy assignment operator. | |
| LandauDistribution & | operator= (LandauDistribution &&)=default |
| Move assignment operator. | |
| param_type | param () const |
| Return the currently configured distribution parameters. | |
| void | param (const param_type &cfg) |
| Set the distribution parameters. | |
| void | reset () |
| Reset any possible internal state. Noop, since there is no internal state. | |
Draw random numbers from a Landau distribution.
Implements the same interface as the standard library distributions.
| using ActsFatras::LandauDistribution::result_type = double |
The type of the generated values.
| ActsFatras::LandauDistribution::LandauDistribution | ( | double | location, |
| double | scale ) |
Construct directly from the distribution parameters.
| location | Location parameter of the distribution |
| scale | Scale parameter of the distribution |
|
explicit |
Construct from a parameter object.
| cfg | Parameter configuration object |
|
default |
|
default |
Copy constructor.
|
default |
Move constructor.
| result_type ActsFatras::LandauDistribution::max | ( | ) | const |
The maximum value the distribution generates.
| result_type ActsFatras::LandauDistribution::min | ( | ) | const |
The minimum value the distribution generates.
| result_type ActsFatras::LandauDistribution::operator() | ( | Generator & | generator | ) |
Generate a random number from the configured Landau distribution.
| generator | Random number generator to use |
| result_type ActsFatras::LandauDistribution::operator() | ( | Generator & | generator, |
| const param_type & | params ) |
Generate a random number from the given Landau distribution.
| generator | Random number generator to use |
| params | Distribution parameters to use for this generation |
|
default |
Copy assignment operator.
|
default |
Move assignment operator.
| param_type ActsFatras::LandauDistribution::param | ( | ) | const |
Return the currently configured distribution parameters.
| void ActsFatras::LandauDistribution::param | ( | const param_type & | cfg | ) |
Set the distribution parameters.
| cfg | New parameter configuration to use |
| void ActsFatras::LandauDistribution::reset | ( | ) |
Reset any possible internal state. Noop, since there is no internal state.