SignalGenerator¶
-
class
DSP.SignalGenerator(mode='analytic', M=1024, components=None, rms=None)¶ Bases:
objectSimulated signal generator for making test signals
Method
signal()returns a DigitalSignal object with the specified properties. The attributeShas a complex signal.If
componentsare specified, it is a Fourier series. If not, it is random Gaussian noise.components - (list of lists) of Fourier components m - (int) data indices mode - (str) “real”, “analytic”, or “complex” S - (DigitalSignal) dtype=complex ndarray subclass
Methods Summary
add_noise([fraction])Adds Gaussian noise to the signal
show_components([in_mode])show the signal components in the specified mode
signal()Methods Documentation
-
add_noise(fraction=1)¶ Adds Gaussian noise to the signal
-
show_components(in_mode='analytic')¶ show the signal components in the specified mode
-
signal()¶
-