Acoular 24.10 documentation

SamplesGenerator

«  Generator   ::   base   ::   SpectraGenerator  »

SamplesGenerator

class acoular.base.SamplesGenerator

Bases: Generator

Interface for any generating multi-channel time domain signal processing block.

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

numchannels = CLong

Number of channels

result(num)

Python generator that yields the output block-wise.

Parameters:
numint

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

Yields:
numpy.ndarray

The two-dimensional time-data block of shape (num, numchannels).

«  Generator   ::   base   ::   SpectraGenerator  »