FERS 1.0.0
The Flexible Extensible Radar Simulator
Loading...
Searching...
No Matches
noise::GammaGenerator Class Referencefinal

Generates Gamma-distributed noise. More...

#include "noise_generators.h"

+ Inheritance diagram for noise::GammaGenerator:
+ Collaboration diagram for noise::GammaGenerator:

Public Member Functions

 GammaGenerator (std::mt19937 &rngEngine, const RealType k) noexcept
 Constructor to initialize the Gamma generator with a shape parameter.
 
RealType getSample () noexcept override
 Generates a sample of Gamma noise.
 

Detailed Description

Generates Gamma-distributed noise.

Definition at line 87 of file noise_generators.h.

Constructor & Destructor Documentation

◆ GammaGenerator()

noise::GammaGenerator::GammaGenerator ( std::mt19937 &  rngEngine,
const RealType  k 
)
explicitnoexcept

Constructor to initialize the Gamma generator with a shape parameter.

Parameters
rngEngineThe random number engine to use for generation.
kThe shape parameter of the Gamma distribution.

Definition at line 96 of file noise_generators.h.

96 :
97 _rng_engine(rngEngine), _dist(k, 1.0)
98 {
99 }

Member Function Documentation

◆ getSample()

RealType noise::GammaGenerator::getSample ( )
overridevirtualnoexcept

Generates a sample of Gamma noise.

Returns
A noise sample of type RealType.

Implements noise::NoiseGenerator.

Definition at line 106 of file noise_generators.h.

106{ return _dist(_rng_engine.get()); }

The documentation for this class was generated from the following file: