OctaveAnalysis (FPScript)

21.09.2021

Performs an octave analysis for an amplitude spectrum.

Syntax

OctaveAnalysis(Spectrum, Result)

 

The syntax of the OctaveAnalysis function consists of the following parts:

Part

Description

Spectrum

The amplitude spectrum, which will be evaluated.

Permitted data structures are signal und signal series. All numeric data types are permitted.

For the X component additional restrictions do apply.The values must have a constant positive spacing.

For complex data types the absolute value is formed.

If the argument is a list, then the function is executed for each element of the list and the result is also a list.

Result

Specifies whether the mean of the amplitudes assigned to an octave band is to be taken or whether the amplitudes are to be totaled.

The argument Result can have the following values:

Constant

Meaning

AMPLITUDE_SUM

The amplitudes in a band are summed up.

AMPLITUDE_MEAN

The amplitudes in a band are averaged.

AMPLITUDE_SQUARESUM

The squared amplitudes in a band are summed up.

AMPLITUDE_RMS

The square mean or RMS for each band is calculated, i.e. the squared amplitudes are averaged and from this the square root is calculated.

If the argument is a list, then the first element in the list is taken. If this is also a list, then the process is repeated.

Remarks

The frequencies of the amplitude spectrum are divided into frequency bands and their mean is taken or they are totaled. The function enters the mid frequencies of these frequency bands in the X component of the result. The following table shows the cut-off frequencies and the mid frequencies of the frequency bands:

Octave bands



fm

fl

fh

...



1

0.71

1.41

2

1.41

2.83

4

2.83

5.66

8

5.66

11.31

16

11.31

22.45

31.5

22.45

44.55

63

44.55

88.74

125

88.74

176.78

250

176.78

353.55

500

353.55

707.11

...



The above frequencies continue periodically across higher orders of magnitude.

Available in

FlexPro Basic, Professional, Developer Suite

Examples

OctaveAnalysis(FourierSpectrum(Signal, SPECTRUM_AMPLITUDE), AMPLITUDE_RMS)

Calculates the RMS octave spectrum of a signal.

See Also

ThirdOctaveAnalysis Function

TimeDomainOctaveAnalysis Function

Share article or send as email:

You might be interested in these articles