Hold the parameters of discrete_normal_dist.
More...
#include <exrandom/discrete_normal_dist.hpp>
template<typename digit_gen>
struct exrandom::discrete_normal_dist< digit_gen >::param_type
Hold the parameters of discrete_normal_dist.
Definition at line 45 of file discrete_normal_dist.hpp.
◆ param_type() [1/4]
template<typename digit_gen>
Construct from the individual parameters.
- Parameters
-
mu_num | the numerator of μ. |
mu_den | the denominator of μ. |
sigma_num | the numerator of σ. |
sigma_den | the denominator of σ. |
Sets μ = mu_num / mu_den and σ = sigma_num / sigma_den.
Definition at line 57 of file discrete_normal_dist.hpp.
◆ param_type() [2/4]
template<typename digit_gen>
◆ param_type() [3/4]
template<typename digit_gen>
Construct with integer parameters.
- Parameters
-
mu | the value of μ. |
sigma | the value of σ. |
Sets μ = mu and σ = sigma.
Definition at line 77 of file discrete_normal_dist.hpp.
◆ param_type() [4/4]
template<typename digit_gen>
Construct with parameters with a common denominator.
- Parameters
-
mu_num | the numerator of μ. |
sigma_num | the numerator of σ. |
den | the common denominator. |
Sets μ = mu_num / den and σ = sigma_num / den.
Definition at line 89 of file discrete_normal_dist.hpp.
◆ mu_num()
template<typename digit_gen>
◆ mu_den()
template<typename digit_gen>
◆ sigma_num()
template<typename digit_gen>
◆ sigma_den()
template<typename digit_gen>
◆ operator==
template<typename digit_gen>
◆ operator<<
template<typename digit_gen>
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const param_type & |
x |
|
) |
| |
|
friend |
◆ operator>>
template<typename digit_gen>
std::istream& operator>> |
( |
std::istream & |
is, |
|
|
param_type & |
x |
|
) |
| |
|
friend |
The documentation for this struct was generated from the following file: