eDSP
0.0.1
A cross-platform DSP library written in C++.
|
This class implements a random generator according to one of the discrete probability function availables in the c++ standard. More...
#include <random_generator.hpp>
Public Types | |
using | value_type = T |
Public Member Functions | |
template<typename... Args> | |
random_generator (Args... arg) | |
Creates a random generator. More... | |
value_type | operator() () |
Generates a random number based in the chosen distribution. More... | |
This class implements a random generator according to one of the discrete probability function availables in the c++ standard.
using edsp::random::random_generator< dist, T >::value_type = T |
|
inlineexplicit |
Creates a random generator.
arg | Arguments parameters to initialize the internal engine. It depends of the chosen distribution. |
|
inline |
Generates a random number based in the chosen distribution.