Simple deterministic PRNG (xorshift32) for reproducible noise.
More...
|
| | SimpleRNG (uint32_t seed=12345) |
| |
| uint32_t | next () |
| |
| int16_t | noise (int16_t amplitude) |
| | Generate noise in range [-amplitude, +amplitude].
|
| |
| void | seed (uint32_t s) |
| |
Simple deterministic PRNG (xorshift32) for reproducible noise.
Definition at line 258 of file test_main.cpp.
◆ SimpleRNG()
| SimpleRNG::SimpleRNG |
( |
uint32_t | seed = 12345 | ) |
|
|
inlineexplicit |
◆ next()
| uint32_t SimpleRNG::next |
( |
| ) |
|
|
inline |
◆ noise()
| int16_t SimpleRNG::noise |
( |
int16_t | amplitude | ) |
|
|
inline |
Generate noise in range [-amplitude, +amplitude].
Definition at line 282 of file test_main.cpp.
◆ seed()
| void SimpleRNG::seed |
( |
uint32_t | s | ) |
|
|
inline |
◆ state
| uint32_t SimpleRNG::state |
|
private |
The documentation for this class was generated from the following file:
- Mk2_3phase_RFdatalog_temp/test/native/test_power_rms_comparison/test_main.cpp