#include <random.h>
A time/space dependent random engine.
The sequence of values not only varies in time, but is also unique on each point of the 2D environment.
- Examples
- pixled/conditional/conditional.cpp, pixled/random/normal.cpp, and pixled/random/uniform.cpp.
◆ operator()()
std::minstd_rand pixled::random::RandomXYT::operator() |
( |
led |
l, |
|
|
time |
t |
|
) |
| const |
|
overridevirtual |
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< random_engine >.
◆ copy()
RandomXYT* pixled::random::RandomXYT::copy |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ RandomEngineConfig() [1/2]
pixled::random::RandomEngineConfig::RandomEngineConfig |
|
inline |
◆ RandomEngineConfig() [2/2]
pixled::random::RandomEngineConfig::RandomEngineConfig |
|
inline |
RandomEngineConfig constructor.
- Parameters
-
period | random engine period |
seed | random engine seed |
The documentation for this class was generated from the following files:
- src/pixled/random/random.h
- src/pixled/random/random.cpp