Acoular 20.10 documentation

acoular.tools.barspectrum

«  acoular.tools.return_result   ::   tools   ::   acoular.tools.bardata  »

acoular.tools.barspectrum

acoular.tools.barspectrum(data, fftfreqs, num=3, bar=True, xoffset=0.0)

Returns synthesized frequency band values of spectral data to be plotted as bar graph with the matlpotlib plot command.

Parameters
dataarray of floats

The spectral data (sound pressures in Pa) in an array with one value per frequency line.

fftfreqsarray of floats

Discrete frequencies from FFT.

numinteger

Controls the width of the frequency bands considered; defaults to 3 (third-octave band).

barbool

If True, returns bar-like curve. If False, normal plot (direct line between data points) is returned.

xoffsetfloat

If bar is True, offset of the perpendicular line (helpful if plotting several curves above each other).

num

frequency band width

1

octave band

3

third-octave band

Returns
(flulist, plist, fc)
flulistarray of floats

Lower/upper band frequencies in plottable format.

plistarray of floats

Corresponding synthesized frequency band values in plottable format.

fcarray of floats

Evaluated band center frequencies.

«  acoular.tools.return_result   ::   tools   ::   acoular.tools.bardata  »