- Joined
- May 1, 2021
- Messages
- 275
- Likes
- 841
So, here is the issue with using these steady-state signals:
Group delay is correctly defined so far; -d(phase(omega))/d(omega)
Phase delay is correctly defined as -phase(omega)/omega.
Here, omega is the angular frequency; 2 times pi times frequency.
We now define a 2nd order allpass filter via the transfer function H(s)=(s^2-omega0*s/Q+omega^2)/ (s^2+omega0*s/Q+omega^2).
We set the Q to some value; here 0.707. And the characteristic angular frequency to 1,000 rad/s, which is 159 Hz in frequency terms.
We plot the phase, here in wrapped version, as a function of frequency:
We calculate the phase delay and group delay associated with the system, taking care to note that the derivatives are defined via angular frequencies not frequency, and taking unwrapping of the phase into account to avoid discontinuities that would be unphysical.
We plot them as function of frequency, including their differential:
We zoom in on the frequency 159 Hz as an example:
We note that at this frequency the phase delay is around 0.0313-ish s and the group delay is 0.028-ish s.
We now calculate the full response of this system, including transient behavior(!), for an input sinusoidal signal with a frequency of 159 Hz, and plot from t=t0=0 s.
We now zoom in at the response as it has reached steady-state conditions.
We note the “apparent delay”, when looking at the delta between a peak in input vs peak in output is 0.0313-ish seconds; the PHASE DELAY.
Ergo: Looking at how these discrete frequency signals are “shifted in phase/time” under steady-state conditions tells us absolutely nothing about the topic; group delay. It gives us their associated phase delay. There are infinitely many systems that could give us this steady-state output for this given frequency; showing the steady-state output does not give us any information about the group delay, as any slope of the phase will not be seen, only the phase value itself (you cannot calculate the derivative in a point without knowledge about adjacent points). (Of course, with this phase delay information for enough frequencies, we could derive a smooth phase via interpolation, and calculate the group delay from there.)
An example of one such system giving us the same steady-state at this frequency is a polarity flip; a 180 degrees phase shift; which is a transfer function of H(s)=-1. Note how when steady-state conditions are reached for our allpass system, the output looks exactly like a flipped version of the input, because the phase is, for both systems, 180 degrees at this particular frequency. What is different, however, is their transient behavior, as we can clearly see from my more elaborate calculation using Inverse Laplace transformation: Our original allpass filter takes time to settle, while a polarity flip-system would immediately output an inverted version of the input. Same steady-state. Same phase delay. Different group delay. At this particular frequency.
So, even looking at a multitude of frequencies, for example the Fourier components of a square signal, each of these will be shifted by their phase delay, as all of the above has to hold for any frequency (the phase will of course not be that of a polarity flip at all of them, but that was just to make a strong point for the chosen frequency). We do not have any ‘group’ of frequencies around one particular frequency, and we cannot deduce transient behavior of the system. All we know from those plots are the phase values for each frequency, but any phase line drawn that goes through these discrete frequency points will satisfy the shown steady-state outputs, and we don’t know the slope (group delay), even if there of course is one associated with the process that created the signals in the first place.
So, the title of post should be ‘phase delay’, not ‘group delay’
Edit: A final note should be that at no frequency will the allpass system acts a pure latency/transport delay. As we go to lower and lower frequencies, the differential between phase delay and group delay will tend to 0, but never reach it. So a very low frequency sinusoidal input will look as if its transient output is first a delay, and then the output will be a phase shifted version of the input, but zoom in enough at that first part, and you will see it slightly deviate from a pure zero. At 159 Hz there is a significant differential delay, and so the transient output has a much more clear non-zero immediate output.
Group delay is correctly defined so far; -d(phase(omega))/d(omega)
Phase delay is correctly defined as -phase(omega)/omega.
Here, omega is the angular frequency; 2 times pi times frequency.
We now define a 2nd order allpass filter via the transfer function H(s)=(s^2-omega0*s/Q+omega^2)/ (s^2+omega0*s/Q+omega^2).
We set the Q to some value; here 0.707. And the characteristic angular frequency to 1,000 rad/s, which is 159 Hz in frequency terms.
We plot the phase, here in wrapped version, as a function of frequency:
We calculate the phase delay and group delay associated with the system, taking care to note that the derivatives are defined via angular frequencies not frequency, and taking unwrapping of the phase into account to avoid discontinuities that would be unphysical.
We plot them as function of frequency, including their differential:
We zoom in on the frequency 159 Hz as an example:
We note that at this frequency the phase delay is around 0.0313-ish s and the group delay is 0.028-ish s.
We now calculate the full response of this system, including transient behavior(!), for an input sinusoidal signal with a frequency of 159 Hz, and plot from t=t0=0 s.
We now zoom in at the response as it has reached steady-state conditions.
We note the “apparent delay”, when looking at the delta between a peak in input vs peak in output is 0.0313-ish seconds; the PHASE DELAY.
Ergo: Looking at how these discrete frequency signals are “shifted in phase/time” under steady-state conditions tells us absolutely nothing about the topic; group delay. It gives us their associated phase delay. There are infinitely many systems that could give us this steady-state output for this given frequency; showing the steady-state output does not give us any information about the group delay, as any slope of the phase will not be seen, only the phase value itself (you cannot calculate the derivative in a point without knowledge about adjacent points). (Of course, with this phase delay information for enough frequencies, we could derive a smooth phase via interpolation, and calculate the group delay from there.)
An example of one such system giving us the same steady-state at this frequency is a polarity flip; a 180 degrees phase shift; which is a transfer function of H(s)=-1. Note how when steady-state conditions are reached for our allpass system, the output looks exactly like a flipped version of the input, because the phase is, for both systems, 180 degrees at this particular frequency. What is different, however, is their transient behavior, as we can clearly see from my more elaborate calculation using Inverse Laplace transformation: Our original allpass filter takes time to settle, while a polarity flip-system would immediately output an inverted version of the input. Same steady-state. Same phase delay. Different group delay. At this particular frequency.
So, even looking at a multitude of frequencies, for example the Fourier components of a square signal, each of these will be shifted by their phase delay, as all of the above has to hold for any frequency (the phase will of course not be that of a polarity flip at all of them, but that was just to make a strong point for the chosen frequency). We do not have any ‘group’ of frequencies around one particular frequency, and we cannot deduce transient behavior of the system. All we know from those plots are the phase values for each frequency, but any phase line drawn that goes through these discrete frequency points will satisfy the shown steady-state outputs, and we don’t know the slope (group delay), even if there of course is one associated with the process that created the signals in the first place.
So, the title of post should be ‘phase delay’, not ‘group delay’
Edit: A final note should be that at no frequency will the allpass system acts a pure latency/transport delay. As we go to lower and lower frequencies, the differential between phase delay and group delay will tend to 0, but never reach it. So a very low frequency sinusoidal input will look as if its transient output is first a delay, and then the output will be a phase shifted version of the input, but zoom in enough at that first part, and you will see it slightly deviate from a pure zero. At 159 Hz there is a significant differential delay, and so the transient output has a much more clear non-zero immediate output.
Attachments
Last edited: