Acoular 19.02 documentation


«  sources   ::   sources   ::   TimeSamples  »


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


Python generator that yields the output block-wise.

num : integer

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

No output since `SamplesGenerator` only represents a base class to derive
other classes from.

«  sources   ::   sources   ::   TimeSamples  »