acoupipe.datasets.spectra_analytic#

Module Contents#

class acoupipe.datasets.spectra_analytic.PowerSpectraAnalytic#

Bases: acoular.PowerSpectraImport

Provides a dummy class for using pre-calculated CSMs.

This class does not calculate the CSM. Instead, the user can inject one or multiple existing CSMs by setting the csm attribute. This can be useful when algorithms shall be evaluated with existing CSMs. The frequency or frequencies contained by the CSM must be set via the frequencies attribute. The attr:num_channels attributes is determined on the basis of the CSM shape. In contrast to the PowerSpectra object, the attributes sample_freq, source, block_size, window, overlap, cached, and num_blocks have no functionality.

fftfreq()#

Return the Discrete Fourier Transform sample frequencies.

Returns:
fndarray

Array of length block_size/2+1 containing the sample frequencies.