Class which represents a uniform distribution.
More...
#include <probability_dist.h>
|
| | Uniform (double min, double max) |
| | Constructor for the Uniform class.
|
| |
| double | sample () const |
| | Returns a sample from the uniform distribution.
|
| |
| void | setRange (double min, double max) |
| | Sets the range of the uniform distribution.
|
| |
|
| std::uniform_real_distribution< double > | dist_ |
| |
Class which represents a uniform distribution.
Definition at line 23 of file probability_dist.h.
◆ Uniform()
| ProbabilityDist::Uniform::Uniform |
( |
double | min, |
|
|
double | max ) |
|
inline |
Constructor for the Uniform class.
- Parameters
-
| min | The minimum value of the uniform distribution. |
| max | The maximum value of the uniform distribution. |
Definition at line 32 of file probability_dist.h.
◆ sample()
| double ProbabilityDist::Uniform::sample |
( |
| ) |
const |
|
inline |
Returns a sample from the uniform distribution.
- Returns
- A sample from the uniform distribution.
Definition at line 39 of file probability_dist.h.
◆ setRange()
| void ProbabilityDist::Uniform::setRange |
( |
double | min, |
|
|
double | max ) |
|
inline |
Sets the range of the uniform distribution.
- Parameters
-
| min | The minimum value of the uniform distribution. |
| max | The maximum value of the uniform distribution. |
Definition at line 49 of file probability_dist.h.
◆ dist_
| std::uniform_real_distribution<double> ProbabilityDist::Uniform::dist_ |
|
mutableprivate |
◆ generator_
| thread_local std::mt19937 ProbabilityDist::Uniform::generator_ |
|
staticprivate |
The documentation for this class was generated from the following file: