|
bitsim
Model, simulate, estimate and control robots in C++
|
#include <uniform_distribution.h>
Public Types | |
| using | out_type = OutType |
| using | range_type = std::pair<out_type, out_type> |
Public Member Functions | |
| UniformDist (out_type a, out_type b) | |
| Construct with [a, b]. | |
| UniformDist (range_type range) | |
| Construct with [a, b]. | |
| out_type | sample () |
| Get a sample. | |
| out_type | sample (uint_t seed) |
| Get a sample. | |
| range_type | range () const |
Produces random integer values i, uniformly distributed on the closed interval [a,b], that is, distributed according to the discrete probability function
| using bitsim::maths::stats::UniformDist< OutType >::out_type = OutType |
| using bitsim::maths::stats::UniformDist< OutType >::range_type = std::pair<out_type, out_type> |
| bitsim::maths::stats::UniformDist< OutType >::UniformDist | ( | out_type | a, |
| out_type | b ) |
Construct with [a, b].
| bitsim::maths::stats::UniformDist< OutType >::UniformDist | ( | range_type | range | ) |
Construct with [a, b].
|
inline |
returns the [a, b] range
| UniformDist< OutType >::out_type bitsim::maths::stats::UniformDist< OutType >::sample | ( | ) |
Get a sample.
| UniformDist< OutType >::out_type bitsim::maths::stats::UniformDist< OutType >::sample | ( | uint_t | seed | ) |
Get a sample.