#include <random.h>
template<typename R>
class pixled::random::UniformDistribution< R >
An random uniform distribution of numbers.
- Parameters
-
R | lower bound |
R | upper bound |
random_engine | random engine passed to the distribution (see RandomT, RandomXYT) |
- Returns
- a value in the specified interval, distributed according an uniform distribution.
- Examples
- pixled/conditional/conditional.cpp, and pixled/random/uniform.cpp.
◆ operator()()
Computes the value of this Function for led l
at time t
.
- Parameters
-
- Returns
- Result of this Function, evaluated on led
l
at time t
. Notice that evaluating a function usually requires the recursive evaluation of other Functions (that are actually parameters of this function) until a Constant is reached for example.
Implements pixled::base::Function< R >.
The documentation for this class was generated from the following file: