Wrapper for distributions. More...
#include <random_generators.h>
Public Types | |
| using | result_type = typename DistributionT::result_type |
| using | param_type = typename DistributionT::param_type |
Public Member Functions | |
| RandomDistribution ()=default | |
| Constructs a distribution object with its default parameters. | |
| ~RandomDistribution ()=default | |
| result_type | operator() (RngPtr g) |
| Generating function. | |
| result_type | operator() (RngPtr g, param_type ¶ms) |
| Generating function. | |
| void | param (const param_type ¶ms) |
| Sets the distribution's associated parameter set to params. | |
| result_type | min () const |
| Returns the minimum value potentially generated by the distribution. | |
| result_type | max () const |
| Returns the maximum value potentially generated by the distribution. | |
Private Attributes | |
| DistributionT | distribution_ |
| Wrapped RandomDistribution. | |
Wrapper for distributions.
The result_type of the distribution must be unsigned long or double.
| DistributionT | Type of the wrapped RandomDistribution. |
| using nest::RandomDistribution< DistributionT >::param_type = typename DistributionT::param_type |
| using nest::RandomDistribution< DistributionT >::result_type = typename DistributionT::result_type |
|
default |
Constructs a distribution object with its default parameters.
|
default |
|
inline |
Returns the maximum value potentially generated by the distribution.
References nest::RandomDistribution< DistributionT >::distribution_.
|
inline |
Returns the minimum value potentially generated by the distribution.
References nest::RandomDistribution< DistributionT >::distribution_.
|
inline |
Generating function.
This function just flips the call, to call the RNG wrapper with the distribution. This is done so that the native C++ distribution can be called with the native C++ generator.
| g | Pointer to the RNG wrapper. |
References nest::RandomDistribution< DistributionT >::distribution_.
|
inline |
Generating function.
This function just flips the call, to call the RNG wrapper with the distribution. This is done so that the native C++ distribution can be called with the native C++ generator.
| g | Pointer to the RNG wrapper. |
| params | Distribution parameter set to use. |
References nest::RandomDistribution< DistributionT >::distribution_.
|
inline |
Sets the distribution's associated parameter set to params.
| params | New contents of the distribution's associated parameter set. |
References nest::RandomDistribution< DistributionT >::distribution_.
Referenced by nest::ConnectionCreator::fixed_indegree_(), nest::ConnectionCreator::fixed_outdegree_(), nest::LognormalParameter::LognormalParameter(), nest::NormalParameter::NormalParameter(), nest::mip_generator::pre_run_hook(), nest::poisson_generator::pre_run_hook(), and nest::pp_psc_delta::pre_run_hook().
|
private |
Wrapped RandomDistribution.
Referenced by nest::RandomDistribution< DistributionT >::max(), nest::RandomDistribution< DistributionT >::min(), nest::RandomDistribution< DistributionT >::operator()(), nest::RandomDistribution< DistributionT >::operator()(), and nest::RandomDistribution< DistributionT >::param().