Instantaneous phase and frequency

From testwiki
Jump to navigation Jump to search

Template:Short description In 1922, according to Nahin, John Renshaw Carson defined the instantaneous frequency of a signal "as the time derivative of the signal's phase angle." In frequency modulation, instantaneous frequency describes the frequency varying above and below the carrier frequency, at the audio tone frequency.[1]

Instantaneous phase and frequency are important concepts in signal processing that occur in the context of the representation and analysis of time-varying functions.[2] The instantaneous phase (also known as local phase or simply phase) of a complex-valued function s(t), is the real-valued function:

φ(t)=arg⁡{s(t)},

where arg is the complex argument function. The instantaneous frequency is the temporal rate of change of the instantaneous phase.

And for a real-valued function s(t), it is determined from the function's analytic representation, sa(t):[3]

φ(t)=arg⁡{sa(t)}=arg⁡{s(t)+jŝ(t)},

where ŝ(t) represents the Hilbert transform of s(t).

When φ(t) is constrained to its principal value, either the interval Template:Open-closed or Template:Closed-open, it is called wrapped phase. Otherwise it is called unwrapped phase, which is a continuous function of argument t, assuming sa(t) is a continuous function of t. Unless otherwise indicated, the continuous form should be inferred.

Instantaneous phase vs time. The function has two true discontinuities of 180° at times 21 and 59, indicative of amplitude zero-crossings. The 360° "discontinuities" at times 19, 37, and 91 are artifacts of phase wrapping.
Instantaneous phase of a frequency-modulated waveform: MSK (minimum shift keying). A 360° "wrapped" plot is simply replicated vertically two more times, creating the illusion of an unwrapped plot, but using only 3x360° of the vertical axis.

Examples

Example 1

s(t)=Acos⁡(ωt+θ),

where ω > 0.

sa(t)=Aej(ωt+θ),φ(t)=ωt+θ.

In this simple sinusoidal example, the constant θ is also commonly referred to as phase or phase offset. φ(t) is a function of time; θ is not. In the next example, we also see that the phase offset of a real-valued sinusoid is ambiguous unless a reference (sin or cos) is specified. φ(t) is unambiguously defined.

Example 2

s(t)=Asin⁡(ωt)=Acos⁡(ωt−π2),

where ω > 0.

sa(t)=Aej(ωt−π2),φ(t)=ωt−π2.

In both examples the local maxima of s(t) correspond to φ(t) = 2Template:PiN for integer values of N. This has applications in the field of computer vision.

Formulations

Instantaneous angular frequency is defined as:

ω(t)=dφ(t)dt,

and instantaneous (ordinary) frequency is defined as:

f(t)=12πω(t)=12πdφ(t)dt

where φ(t) must be the unwrapped phase; otherwise, if φ(t) is wrapped, discontinuities in φ(t) will result in Dirac delta impulses in f(t).

The inverse operation, which always unwraps phase, is:

φ(t)=∫−∞tω(τ)dτ=2π∫−∞tf(τ)dτ=∫−∞0ω(τ)dτ+∫0tω(τ)dτ=φ(0)+∫0tω(τ)dτ.

This instantaneous frequency, ω(t), can be derived directly from the real and imaginary parts of sa(t), instead of the complex arg without concern of phase unwrapping.

φ(t)=arg⁡{sa(t)}=atan2⁡(ℐ𝓂[sa(t)],ℛℯ[sa(t)])+2m1π=arctan⁡(ℐ𝓂[sa(t)]ℛℯ[sa(t)])+m2π

2m1Template:Pi and m2Template:Pi are the integer multiples of Template:Pi necessary to add to unwrap the phase. At values of time, t, where there is no change to integer m2, the derivative of φ(t) is

ω(t)=dφ(t)dt=ddtarctan⁡(ℐ𝓂[sa(t)]ℛℯ[sa(t)])=11+(ℐ𝓂[sa(t)]ℛℯ[sa(t)])2ddt(ℐ𝓂[sa(t)]ℛℯ[sa(t)])=ℛℯ[sa(t)]dℐ𝓂[sa(t)]dt−ℐ𝓂[sa(t)]dℛℯ[sa(t)]dt(ℛℯ[sa(t)])2+(ℐ𝓂[sa(t)])2=1|sa(t)|2(ℛℯ[sa(t)]dℐ𝓂[sa(t)]dt−ℐ𝓂[sa(t)]dℛℯ[sa(t)]dt)=1(s(t))2+(ŝ(t))2(s(t)dŝ(t)dt−ŝ(t)ds(t)dt)

For discrete-time functions, this can be written as a recursion:

φ[n]=φ[n−1]+ω[n]=φ[n−1]+arg⁡{sa[n]}−arg⁡{sa[n−1]}⏟Δφ[n]=φ[n−1]+arg⁡{sa[n]sa[n−1]}

Discontinuities can then be removed by adding 2Template:Pi whenever Δφ[n] ≤ −Template:Pi, and subtracting 2Template:Pi whenever Δφ[n] > Template:Pi. That allows φ[n] to accumulate without limit and produces an unwrapped instantaneous phase. An equivalent formulation that replaces the modulo 2Template:Pi operation with a complex multiplication is:

φ[n]=φ[n−1]+arg⁡{sa[n]sa∗[n−1]},

where the asterisk denotes complex conjugate. The discrete-time instantaneous frequency (in units of radians per sample) is simply the advancement of phase for that sample

ω[n]=arg⁡{sa[n]sa∗[n−1]}.

Complex representation

In some applications, such as averaging the values of phase at several moments of time, it may be useful to convert each value to a complex number, or vector representation:[4]

eiφ(t)=sa(t)|sa(t)|=cos⁡(φ(t))+isin⁡(φ(t)).

This representation is similar to the wrapped phase representation in that it does not distinguish between multiples of 2Template:Pi in the phase, but similar to the unwrapped phase representation since it is continuous. A vector-average phase can be obtained as the arg of the sum of the complex numbers without concern about wrap-around.

See also

References

Template:Reflist

Further reading