Acoular 24.05 documentation

SamplesGenerator

«  tprocess   ::   tprocess   ::   TimeInOut  »

SamplesGenerator

class acoular.tprocess.SamplesGenerator

Bases: 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:
numinteger

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.

«  tprocess   ::   tprocess   ::   TimeInOut  »