|
FERS 1.0.0
The Flexible Extensible Radar Simulator
|
Generates noise using a clock model with multiple rates. More...
#include "noise_generators.h"
Inheritance diagram for noise::ClockModelGenerator:
Collaboration diagram for noise::ClockModelGenerator:Public Member Functions | |
| ClockModelGenerator (std::mt19937 &rngEngine, const std::vector< RealType > &alpha, const std::vector< RealType > &inWeights, RealType frequency, RealType phaseOffset, RealType freqOffset, int branches) noexcept | |
| Constructor to initialize the clock model generator. | |
| RealType | getSample () override |
| Generates a clock model noise sample. | |
| void | skipSamples (long long samples) |
| Skips a number of samples in the noise sequence. | |
| void | reset () |
| Resets the noise generator state. | |
| bool | enabled () const |
| Checks if the noise generator is enabled. | |
Generates noise using a clock model with multiple rates.
This is useful for simulating clock jitter or other similar phenomena.
Definition at line 169 of file noise_generators.h.
|
noexcept |
Constructor to initialize the clock model generator.
| rngEngine | The random number engine to use for generation. |
| alpha | Vector of scaling parameters for the noise. |
| inWeights | Vector of weights for each rate process. |
| frequency | The base frequency of the clock model. |
| phaseOffset | The phase offset of the generated noise. |
| freqOffset | The frequency offset of the generated noise. |
| branches | The number of branches in each rate process. |
Definition at line 102 of file noise_generators.cpp.
| bool noise::ClockModelGenerator::enabled | ( | ) | const |
Checks if the noise generator is enabled.
Definition at line 172 of file noise_generators.cpp.
|
overridevirtual |
Generates a clock model noise sample.
Implements noise::NoiseGenerator.
Definition at line 137 of file noise_generators.cpp.
References PI, and params::rate().
Here is the call graph for this function:| void noise::ClockModelGenerator::reset | ( | ) |
Resets the noise generator state.
Definition at line 161 of file noise_generators.cpp.
| void noise::ClockModelGenerator::skipSamples | ( | long long | samples | ) |
Skips a number of samples in the noise sequence.
| samples | The number of samples to skip. |
Definition at line 152 of file noise_generators.cpp.