GroupDelay (FPScript)

21.09.2021

Calculates the group delay from the filter coefficients.

Syntax

GroupDelay(FilterCoefficients, [ Length = 1024 ] [ , SamplingRate = 1 ])

 

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

Part

Description

FilterCoefficients

The filter coefficients for which the group delay is calculated.

Permitted data structures are data series und list. All numeric data types are permitted, except calendar time und time span.

Length

Specifies the data length of the group delay.

Permitted data structures are scalar value. Supported data types are 16-bit integer und 32-bit integer.

The value must be greater than 0.

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.

If this argument is omitted, it will be set to the default value 1024.

SamplingRate

If you specify the sampling rate of the time signals for which you are using the filter, then the X component is scaled in such a way that it represents the physical frequencies. If you omit the argument, the group delay for normalized frequencies will be calculated in a range from 0 to 0.5.

Permitted data structures are scalar value. All real data types are permitted.

The value must be greater than 0.

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.

If this argument is omitted, it will be set to the default value 1.

Remarks

The result is a signal and the data type is always a real or complex 64-bit floating point value. The X component contains the frequencies from 0 to half of the sampling frequency. The unit of the result corresponds to the reciprocal of the unit of the sampling rate.

The FilterCoefficients argument is either a list with the numerator and denominator coefficients (IIR) or a data series with the numerator coefficients (FIR) of a filter.

Available in

Option Digital Filters

Examples

GroupDelay(IIRFilter(FILTER_BUTTERWORTH, FILTER_LOWPASS, 5, 200 Hz, 0.1, 0.1, FILTER_DELTA, , 1 kHz), , 1 kHz)

Calculates the group delay from the coefficients of a Butterworth low-pass filter of the 5th order with the cut-off frequency of 200 Hz for a sampling rate of 1 kHz.

See Also

Filter Function

FIRFilterEquiripple Function

FIRFilterWindow Function

IIRFilter Function

AmplitudeResponse Function

PhaseResponse Function

Digital Filters Option

IIR Filter Analysis Object

FIR Filter Analysis Object (Equiripple Method)

FIR Filter Analysis Object (Window Method)

Filter Tutorial

Share article or send as email:

You might be interested in these articles