Acoular 16.5 documentation

SamplesGenerator

«  UncorrelatedNoiseSource   ::   sources   ::   TimeSamples  »

SamplesGenerator

class acoular.sources.SamplesGenerator

Bases: traits.has_traits.HasPrivateTraits

Base class for any generating signal processing block

It provides a common interface for all SamplesGenerator classes, which generate an output via the generator result(). This class has no real functionality on its own and should not be used directly.

sample_freq = Float(1.0, desc="sampling frequency")

Sampling frequency of the signal, defaults to 1.0

numchannels = CLong

Number of channels

numsamples = CLong

Number of samples

result(num)

Python generator that yields the output block-wise.

Parameters:

num : integer

This parameter defines the size of the blocks to be yielded (i.e. the number of samples per block)

Returns:

No output since SamplesGenerator only represents a base class to derive

other classes from

«  UncorrelatedNoiseSource   ::   sources   ::   TimeSamples  »