Acoular 24.05 documentation

GenericSignalGenerator

«  SineGenerator   ::   signals   ::   sources  »

GenericSignalGenerator

class acoular.signals.GenericSignalGenerator

Bases: SignalGenerator

Generate signal from output of SamplesGenerator object.

source = Trait(SamplesGenerator)

Data source; SamplesGenerator or derived object.

sample_freq = Delegate('source')

Sampling frequency of output signal, as given by source.

numsamples = Property()

Number of samples to generate. Is set to source.numsamples by default.

loop_signal = Bool(True)

Boolean flag, if ‘True’ (default), signal track is repeated if requested numsamples is higher than available sample number

signal()

Deliver the signal.

Returns:
array of floats

The resulting signal as an array of length numsamples.

«  SineGenerator   ::   signals   ::   sources  »