SpectraOut¶
- class acoular.base.SpectraOut¶
Bases:
SpectraGenerator
Abstract base class for any signal processing block that receives data from any
source
domain and returns frequency domain signals.It provides a base class that can be used to create signal processing blocks that receive data from any generating
source
domain and generates a frequency domain output via the generatorresult()
in block-wise manner.- block_size = Delegate('source')¶
The size of the block used to calculate the spectra
- abstractmethod result(num=1)¶
Python generator that processes the source data and yields the output block-wise.
This method needs to be implemented by the derived classes.
- numinteger
This parameter defines the the number of snapshots to be yielded. Defaults to 1.
- Yields:
- numpy.ndarray
A two-dimensional block of shape (num, num_channels * num_freqs).