Noise Modeling#
- class AWGN(power=0.0, seed=None)[source]#
Bases:
Serializable
,Noise
[AWGNRealization
]Additive White Gaussian Noise.
- Parameters:
power (float, optional) – Power of the added noise.
- realize(power=None)[source]#
Realize the noise model.
- Parameters:
power (float, optional) – Power of the added noise. If not specified, the class
Noise.power()
configuration will be applied.- Return type:
Returns: Noise model realization.
- class AWGNRealization(noise, power)[source]#
Bases:
NoiseRealization
Realization of additive white Gaussian noise
- Parameters:
noise (Noise) – Noise model to be realized.
power (power) – Power indicator of the noise model.
- class Noise(power=0.0, seed=None)[source]#
Bases:
RandomNode
,Generic
[NoiseRealizationType
]Noise modeling base class.
- Parameters:
power (float, optional) – Power of the added noise.
- add(signal, realization=None)[source]#
Add noise to a signal model.
- Parameters:
signal (Signal) – The signal to which the noise should be added.
realization (NoiseRealizationType) – Realization of the noise model to be added to signal.
- Return type:
Returns: Signal model with added noise.
- abstract realize(power=None)[source]#
Realize the noise model.
- Parameters:
power (float, optional) – Power of the added noise. If not specified, the class
Noise.power()
configuration will be applied.- Return type:
TypeVar
(NoiseRealizationType
, bound=NoiseRealization
)
Returns: Noise model realization.
- property power: float#
Power of the added noise.
Note that for white Gaussian noise the power is equivalent to the variance of the added random variable.
- Returns:
Power of the added noise.
- Return type:
power (float)
- Raises:
ValueError – If the power is smaller than zero.
- class NoiseRealization(noise, power)[source]#
Bases:
RandomRealization
Realization of a noise model
- Parameters:
noise (Noise) – Noise model to be realized.
power (power) – Power indicator of the noise model.
- abstract add_to(signal)[source]#
- Parameters:
signal (Signal) – The signal to which the noise should be added.
realization (NoiseRealizationType) – Realization of the noise model to be added to signal.
power (float, optional) – Power of the added noise.
- Return type:
- class NoiseRealizationType#
Type of noise realization
alias of TypeVar(‘NoiseRealizationType’, bound=
NoiseRealization
)