NoiseGenerator¶
- class acoular.signals.NoiseGenerator¶
Bases:
SignalGenerator
Abstract base class for noise signal generators.
The
NoiseGenerator
class defines the common interface for allSignalGenerator
classes with noise signals. This class may be used as a base for class handling noise signals that can be characterized by their RMS amplitude.It should not be used directly as it contains no real functionality.
See also
acoular.signals.PNoiseGenerator
For pink noise generation.
acoular.signals.WNoiseGenerator
For pink white generation.
acoular.sources.UncorrelatedNoiseSource
For per-channel noise generation.
- rms = Float(1.0, desc='rms amplitude')¶
Root mean square (RMS) amplitude of the signal. For a point source, this corresponds to the RMS amplitude at a distance of 1 meter. Default is
1.0
.
- seed = Int(0, desc='random seed value')¶
Seed for random number generator. Default is
0
. This parameter should be set differently for different instances to guarantee statistically independent (non-correlated) outputs.
- digest = Property(depends_on=['rms', 'seed', 'sample_freq', 'num_samples'])¶
Internal identifier based on generator properties. (read-only)
- abstractmethod signal()¶
Generate and deliver the periodic signal.