1 Introduction

Many application fields such as communications and radar signal processing require accurate and real-time estimation of the frequency of complex-valued noisy sinewaves [7, 19, 25, 28]. The so-called Interpolated Discrete-Time Fourier Transform (IpDTFT) algorithms can be advantageously employed to estimate the signal frequency due to their high accuracy and low computational burden. They are two steps algorithms: at first a coarse frequency estimate is obtained as the index of the highest DFT spectrum sample, then a fine frequency estimate is derived by interpolating DTFT samples located very close to the DFT spectrum peak. The aim of this second step is to compensate the so-called picket-fence effect due to the finite number of processed samples, so determining the inter-bin frequency location [22]. The IpDTFT fine frequency estimators proposed in the literature are based on two [1,2,3, 14, 17, 22, 24, 26, 29] or more DTFT samples [4, 8, 9, 11, 12, 14, 16, 20, 23, 30] and an iterative procedure may be employed. Some algorithms weight the input signal by using a suitable window function in order to reduce the contribution on the estimated frequency of the spectral interference from possible disturbing tones (such as harmonics and interharmonics) [13]. The Maximum Sidelobe Decay (MSD) windows are often employed due to both their optimal spectral leakage reduction capabilities [21] and the simplicity of the analytical expressions involved in the DTFT samples interpolation [4].

The classical Interpolated Discrete Fourier Transform (IpDFT) frequency estimator interpolates the two highest DFT samples [2, 3, 22, 24, 26]. It is very simple and very fast, but the variance of the related estimator does not attain the unbiased Cramér-Rao Lower Bound (CRLB) [27] when the analyzed sinewave is affected by wideband noise. To overcome this problem an iterative two-point IpDTFT frequency estimator based on the rectangular window, called in the following the AM algorithm, has been proposed in [1]. In each iteration, two DTFT samples located ± 0.5 bins apart from the highest DTFT sample are interpolated; two iterations suffice to almost attain the CRLB. A generalization of that algorithm, in which the two interpolation points are shifted by ± q bins (− 0.5 ≤ q < 0.5) with respect to the highest DTFT sample has been proposed in [29]. That algorithm, called q-shift (QS) estimator slightly outperforms the AM algorithm [1] when an appropriate value for q is selected, the number of analyzed samples is enough high, and at least three iterations are performed. Furthermore, a version of the AM frequency estimator that exhibits a smaller bias has been derived in [16], while an extension to cosine windows has been proposed in [6].

A non-iterative three-point IpDFT frequency estimator based on the rectangular window has been proposed in [14]. Its accuracy has been comprehensively analyzed in [8, 9], and its extension to cosine windows has been proposed in [4]. However, the variance of that estimator does not attain the CRLB. Recently, two iterative three-point IpDTFT frequency estimators based on the highest DFT sample and two DTFT samples located at ± 0.5 bins or ± p bins (0 < p ≤ 1) apart have been proposed in [11] and [12], by adopting the rectangular window or an MSD window, respectively. When the rectangular window is adopted, two iterations are enough to almost attain the unbiased CRLB.

A two-step three-point Parabolic Interpolated DTFT (PIpDTFT) frequency estimator has been proposed in [10]. The first step estimates the inter-bin frequency location by applying the three-point IpDFT algorithm [9], while the second step improves the estimation accuracy through a parabolic interpolation of three DTFT points located very close to the estimate returned by first step. An analytical expression for the PIpDTFT estimator interpolation error has been derived in [5] and it has been shown that a suitable selection of the interpolation points allows to almost attain the CRLB. Also, in [5] the algorithm has been extended to MSD windows and it has been shown that the simpler classical two-point IpDFT algorithm [22, 24, 26] can be used to estimate the initial frequency with no effect on the final accuracy.

This paper is aimed at the derivation of a three-step two-points IpDTFT (LIpDTFT) frequency estimator based on the Linearization of the DTFT module behavior around the spectrum peak. The first step returns a coarse frequency estimate as the index of the highest DFT spectrum sample. In the following step a first estimate for the inter-bin frequency location is obtained by applying the classical two-point IpDFT algorithm [22, 24, 26]. The last step improves the estimation accuracy by linearizing the behavior of the DTFT module and interpolating two DTFT samples located at frequencies very close to estimate obtained from the two previous steps. The proposed LIpDTFT algorithm ensures both a smaller interpolation error and a lower processing effort than the PIpDTFT algorithm. The effect of windowing on estimation accuracy is also analyzed in the paper. The accuracies of the LIpDTFT, the PIpDTFT and other state-of-the-art interpolated DTFT frequency estimators are compared to each other by means of computer simulations.

The remaining of this paper is organized as follows. In Sect. 2 the proposed LIpDTFT frequency estimator is derived, then its interpolation error is analyzed in Sect. 3. A performance comparison with state-of-the-art interpolated DTFT frequency estimators is then performed in Sect. 4. Section 5 concludes the paper.

2 The proposed LIpDTFT estimator

Let’s consider a noisy complex-valued sinewave, modelled as:

$$ y\left( m \right) = Ae^{{j\left( {2\pi fm + \phi } \right)}} + e\left( m \right),\quad m = 0, 1, 2, \ldots , M {-} 1 $$
(1)

where A, f, and ϕ are the amplitude, the normalized frequency, and the initial phase of the sinewave, e(⋅) is a complex-valued additive white Gaussian noise with zero mean and variance σ2, and M is the record length. The Signal-to-Noise Ratio (SNR) of (1) is \(SNR=\frac{{A}^{2}}{{\sigma }^{2}}.\)

The normalized frequency f can be expressed as:

$$ f \mathop {=}\limits ^{\text{def}} \frac{\nu }{M} = \frac{l + \delta }{M}, $$
(2)

where ν = l + δ represents the number of acquired sinewave cycles or the normalized frequency expressed in bins; l is its integer part and δ (− 0.5 ≤ δ < 0.5) is the inter-bin frequency location.

The DTFT of signal (1) is:

$$ Y\left( \lambda \right) \mathop {=}\limits ^{\text{def}} \mathop \sum \limits_{m = 0}^{M - 1} y\left( m \right)e^{{ - j2\pi \frac{\lambda }{M}m}} = AW\left( {\lambda - \nu } \right)e^{j\phi } + E\left( \lambda \right), \quad \lambda \in \left[ {0, M} \right) $$
(3)

where \(W\left(\lambda \right)=\frac{{\text{sin}}\left(\pi \lambda \right)}{{\text{sin}}\left(\frac{\pi \lambda }{M}\right)}{e}^{-j\pi \frac{M-1}{M}\lambda }\) and E(\(\lambda \)) are the DTFTs of the rectangular window w(⋅) that models the signal truncation, and wideband noise e(⋅), respectively.

For the sake of notation, the window DTFT module is represented as \(\left|W\left(\lambda \right)\right|\triangleq \widetilde{W}\left(\lambda \right)\), while the DTFT interpolation points are denoted as \(P_{ - 1} \triangleq \left| {Y\left( {\hat{\nu }_{0} - d_{x} } \right)} \right|,\) \(P_{0} \triangleq \left| {Y\left( {\hat{\nu }_{0} } \right)} \right|,\) and \(P_{ + 1} \triangleq \left| {Y\left( {\hat{\nu }_{0} + d_{x} } \right)} \right|\), where \({\widehat{\nu }}_{0}\) is an initial estimate for the number of observed sinewave cycles ν and dx (0 < dx < 1) is a fractional shift with respect to the initial frequency estimate. By neglecting the noise contribution, from (3) it follows:

$$ P_{ - 1} \cong A\widetilde{W}\left( {d_{x} - {\Delta }\nu_{0} } \right), $$
(4a)
$$ P_{0} \cong A\widetilde{W}\left( {{\Delta }\nu_{0} } \right), $$
(4b)
$$ P_{ + 1} \cong A\widetilde{W}\left( {d_{x} + {\Delta }\nu_{0} } \right), $$
(4c)

where \(\Delta {\nu }_{0}\stackrel{\scriptscriptstyle{\text{def}}}{=}{\widehat{\nu }}_{0}-\nu \) is the error of the initial frequency estimate. In the following we assume that \(\left|\Delta {\nu }_{0}\right|\) is small, as it often occurs when \({\widehat{\nu }}_{0}\) is returned by the classical IpDTFT algorithm [22, 24, 26]. Thus, (4) is accurately approximated by considering only the lower order terms of the Taylor’s series:

$$ P_{ - 1} \cong A\widetilde{W}\left( {d_{x} } \right) - A\widetilde{W}^{\prime}\left( {d_{x} } \right)\Delta \nu_{0} + \frac{{A\widetilde{W}^{\prime\prime}\left( {d_{x} } \right)}}{2}\Delta^{2} \nu_{0} - \frac{{A\widetilde{W}^{\prime\prime\prime}\left( {d_{x} } \right)}}{6}\Delta^{3} \nu_{0} + \cdots , $$
(5a)
$$ P_{0} \cong A \widetilde{W}\left( 0 \right) + \frac{{A\widetilde{W}^{\prime\prime}\left( 0 \right)}}{2}\Delta^{2} \nu_{0} + \cdots , $$
(5b)
$$ P_{ + 1} \cong A\widetilde{W}\left( {d_{x} } \right) + A\widetilde{W}^{\prime}\left( {d_{x} } \right)\Delta \nu_{0} + \frac{{A\widetilde{W}^{\prime\prime}\left( {d_{x} } \right)}}{2}\Delta^{2} \nu_{0} + \frac{{A\widetilde{W}^{\prime\prime\prime}\left( {d_{x} } \right)}}{6}\Delta^{3} \nu_{0} + \cdots ,{ } $$
(5c)

where \({\widetilde{W}}^{\prime}\left(\cdot \right)\), \({\widetilde{W}}^{\prime\prime}\left(\cdot \right)\), and \({\widetilde{W}}^{\prime\prime\prime}\left(\cdot \right)\) represents the first, second, and third derivatives of\(\widetilde{W}\left(\cdot \right)\), respectively. In particular: \(\widetilde{W}\left( 0 \right) = M\) and \(\widetilde{W}^{\prime\prime}\left( 0 \right) = - \frac{{\pi^{2} \left( {M^{2} - 1} \right)}}{{3 \cdot {\text{M}}}}{ },\) while \(\widetilde{W}^{\prime}\left( 0 \right) = 0\) and \(\widetilde{W}^{\prime\prime\prime}\left( 0 \right) = 0\) since \(\widetilde{W}\left( \lambda \right)\) is an even function of frequency.

From (5), by considering only the first order terms and using simple algebra, the following class of two-point LIpDTFT estimators can be derived:

$$ \hat{\nu }_{2l\_g} = \hat{\nu }_{0} + f\left( {\frac{{P_{i} }}{{P_{j} }}} \right), \quad i, j \in \left\{ { - 1, 0, + 1} \right\},\quad i \ne j, $$
(6)

where f(·) is a suitable function of the ratio between two different DTFT samples Pi/Pj, where \(i, j \in \left\{-1, 0, +1\right\}\).

In the following, the two-point LIpDTFT frequency estimator, defined by:

$$ \hat{\nu }_{2l} = \hat{\nu }_{0} + \frac{{\widetilde{W}\left( {d_{x} } \right)}}{{\widetilde{W}^{\prime}\left( {d_{x} } \right)}}\frac{{1 - \frac{{P_{ + 1} }}{{P_{ - 1} }}}}{{1 + \frac{{P_{ + 1} }}{{P_{ - 1} }}}},{ } $$
(7)

is analysed since simulations showed that it is the most accurate estimators within those identified by (6).

It is worth noticing that (7) holds for a generic window and the coefficient \(\widetilde{W}\left({d}_{x}\right)/{\widetilde{W}}^{\prime}\left({d}_{x}\right)\) can be determined a priori once the fractional shift dx is fixed.

3 Interpolation Error of the LIpDTFT Frequency Estimator

In this Section an analytical expression of the interpolation error of the LIpDTFT frequency estimator (7) is firstly derived in the case of the rectangular window and considering a noiseless complex-valued sinewave. That error is then compared with the one introduced by the PIpDTFT estimator using both theoretical and simulation results.

By replacing in (7) the expressions of \(\widetilde{W}\left({d}_{x}\right)\) and \(\widetilde{W}^{\prime}\left( {d_{x} } \right)\) it results the following expression for the LIpDTFT frequency estimator:

$$ \hat{\nu }_{2l} = \hat{\nu }_{0} + \frac{{\widetilde{W}\left( {d_{x} } \right)}}{{\widetilde{W}^{\prime}\left( {d_{x} } \right)}}\frac{{1 - \frac{{P_{ + 1} }}{{P_{ - 1} }}}}{{1 + \frac{{P_{ + 1} }}{{P_{ - 1} }}}} = \hat{\nu }_{0} + \frac{1}{\pi }\frac{{\tan \left( {\pi d_{x} } \right){\text{tan}}\left( {\frac{{\pi d_{x} }}{M}} \right)}}{{{\text{tan}}\left( {\frac{{\pi d_{x} }}{M}} \right) - \frac{1}{M}\tan \left( {\pi d_{x} } \right)}}\frac{{1 - \frac{{P_{ + 1} }}{{P_{ - 1} }}}}{{1 + \frac{{P_{ + 1} }}{{P_{ - 1} }}}},{ } $$
(8)

where \(\widetilde{W}\left( {d_{x} } \right) = \frac{{\sin \left( {\pi d_{x} } \right)}}{{{\text{sin}}\left( {\frac{{\pi d_{x} }}{M}} \right)}}\;\; {\text{and}}\;\; \widetilde{W}^{\prime}\left( {d_{x} } \right) = \frac{{\pi \cos \left( {\pi d_{x} } \right){\text{sin}}\left( {\frac{{\pi d_{x} }}{M}} \right) - \frac{\pi }{M}\sin \left( {\pi d_{x} } \right){\text{cos}}\left( {\frac{{\pi d_{x} }}{M}} \right)}}{{{\text{sin}}^{2} \left( {\frac{{\pi d_{x} }}{M}} \right)}}.\)

The following Proposition holds (see the proof in the Appendix):

Proposition 1

The interpolation error of the LIpDTFT frequency estimator (7) is given by:

$$ \Delta \nu_{2l} = \hat{\nu }_{2l} - \nu \cong \left( { - \frac{{\pi^{2} }}{15} + \frac{{43\pi^{4} d_{x}^{2} }}{1800}} \right)\Delta^{3} \nu_{0} .{ } $$
(9)

Conversely, the interpolation error of the PIpDTFT estimator [10]:

$$ \widetilde{\nu }_{3p} = \hat{\nu }_{0} - \frac{{d_{x} }}{2}\frac{{P_{ + 1} - P_{ - 1} }}{{P_{ - 1} - 2P_{0} + P_{ + 1} }}. $$
(10)

can be expressed as follows (see the proof in the Appendix):

Proposition 2

The interpolation error of the PIpDTFT frequency estimator (10) is given by:

$$ \Delta \nu_{3p} \cong \frac{{\pi^{2} d_{x}^{2} }}{20}\Delta \nu_{0} . $$
(11)

From (9) and (11) it follows that:

  • when dx is enough small, the LIpDTFT interpolation error (9) is almost constant, while the PIpDTFT interpolation error (11) strongly depends on the fractional shift dx;

  • since in practice the error \(\Delta {\nu }_{0}\) is usually negligible with respect to the fractional shift dx, the LIpDTFT interpolation error is much smaller than the PIpDTFT interpolation error.

In Fig. 1 the magnitude of the maximum interpolation error \(\left| {\Delta \nu_{2l} } \right|_{max}\) and \(\left| {\Delta \nu_{3p} } \right|_{max}\) returned respectively by the LIpDTFT and the PIpDTFT estimators is reported as a function of the fractional shift dx, which takes values in the range [0.01, 0.5] bins with a step of 0.01 bins. ν = 2.3 cycles of a noiseless sinewave with amplitude A = 1 p.u. are considered, and 1000 runs of M = 8, 16, or 32 samples each with phase ϕ chosen at random in the range [0, 2π) rad are performed. The integer part l of the number of observed cycles is obtained through a peak search procedure applied to the DFT square module. The initial value for the inter-bin frequency location is obtained by the classical two-point IpDFT algorithm based on the rectangular window [24]. Theoretical results returned by (9) and (11) are also reported in Fig. 1.

Fig. 1
figure 1

Noiseless complex-valued sinewaves: maximum magnitude of the LIpDTFT and the PIpDTFT interpolation error versus the fractional shift dx in bins. 1000 runs of M = 8, 16 or 32 samples for each value of dx with sinewave phase chosen at random. Simulation (crosses) and theoretical (continuous line) results

As expected, Fig. 1 shows that the LIpDTFT estimator is more accurate than the PIpDTFT estimator if the fractional shift dx is not too small, which perfectly agree with the behavior expected from the theory. Also, when dx is smaller than about 0.3 bins, the LIpDTFT interpolation error is almost constant. Observe that the accuracies of both estimators increase as M increases due to the higher accuracy of the initial frequency estimate.

4 Accuracy Comparison with State-of-the-Art Estimators

In this Section the accuracies of the LIpDTFT, the PIpDTFT, the three-point IpDFT estimator [8] (called here the Candan estimator), the AM estimator [1], the QS estimator [29], and the three-point IpDTFT estimator [12] (called here the Fan estimator) are compared to each other by means of simulations. Both versions (i.e., without and with signal windowing) of the Candan algorithm are considered, while the QS estimator is defined only for the rectangular window [29]. As suggested by the Authors, two iterations are performed in the AM and the Fan estimators, and the QS estimator is implemented through three iterations. The H-term MSD window and a fractional shift p = 0.1 bins have been used in the Fan estimator [12]. The expressions used for the considered frequency estimators are reported in In Table 1.

Table 1 The expressions for the used frequency estimators

Monte Carlo simulations consider 100,000 runs of a complex-valued noisy sinewave with amplitude A = 1 p.u. and phase chosen at random in the range [0, 2π) rad. The estimator Root Mean Square Error (RMSE) has been evaluated and compared with the square root of the CRLB, which is equal to \(\left( {\sigma_{\nu }^{2} } \right)_{CR} \cong 3 \cdot M/\left( {2 \cdot \pi^{2} \cdot \left( {M^{2} - 1} \right) \cdot SNR} \right)\) [15, 27]. In the following the results obtained by processing either unweighted or weighted signals are separately analysed.

4.1 Unweighted signal

Figure 2 shows the RMSEs of the LIpDTFT and the PIpDTFT frequency estimators and the corresponding \(\sqrt{{\text{CRLB}}}\) as a function of SNR when ν = 2.3 cycles are observed, M = 16 samples, and the fractional shift dx is equal to 0.05 (Fig. 2a), 0.1 (Fig. 2b), and 0.3 (Fig. 2c) bins, respectively.

Fig. 2
figure 2

Noisy complex-valued sinewaves: RMSE (in bins) of the PIpDTFT, and the LIpDTFT frequency estimators, and the \(\sqrt{{\text{CRLB}}}\) versus SNR when ν = 2.3 cycles when the fractional shift dx is equal to 0.05 (a), 0.1 (b), and 0.3 (c) bins. For each SNR value 100,000 runs with sinewave phase chosen at random and M = 16 samples are considered

Figure 2 shows that the LIpDTFT frequency estimator almost attains the CRLB for all considered values of both SNR and fractional shift dx, except when the SNR is below the breakdown threshold [27], which is equal to about 4 dB for the considered value of M. Conversely, the PIpDTFT frequency estimator ensures optimum accuracy only for small dx values. It is worth noticing that the LIpDTFT frequency estimator almost attains the CRLB for all values of SNR when dx is less than about 0.7 bins.

Figure 3 shows the RMSEs of the considered frequency estimators and the corresponding \(\sqrt{{\text{CRLB}}}\) as a function of SNR when ν = 2.3 cycles and the number of samples M is equal to 4 (Fig. 3a), 16 (Fig. 3b), and 64 (Fig. 3c). The fractional shift is dx = 0.1 bins in both the PIpDTFT and the LIpDTFT algorithms.

Fig. 3
figure 3

Noisy complex-valued sinewaves: RMSE (in bins) of the Candan, the AM, the QS, the Fan, the PIpDTFT, and the LIpDTFT frequency estimators, and the \(\sqrt{{\text{CRLB}}}\) versus SNR when ν = 2.3 cycles. The fractional shift is dx = 0.1 bins in both the PIpDTFT and the LIpDTFT estimators. For each SNR value 100,000 runs with sinewave phase chosen at random and M = 4 (a), 16 (b), and 64 (c) samples are considered

Figure 3 shows that the LIpDTFT frequency estimator outperforms the others. It almost attains the CRLB for all considered values of M, except when the SNRs are either very low or very high and M = 4 samples. The PIpDTFT, the AM, and the Fan frequency estimators almost attains the CRLB when at least 64 samples are processed, even if the PIpDTFT estimator exhibits a better accuracy when fewer samples are available. The QS estimator almost attains the CRLB only if at least 64 samples are considered, and SNR is less than about 70 dB. The Candan estimator RMSE is close to the CRLB only for a limited range of SNRs, especially when few samples are available.

Figure 4 shows the Normalized RMSE (NRMSE), defined as the ratio between the RMSE and the CRLB of the most accurate frequency estimators, that is the AM, the Fan, the PIpDTFT, and the LIpDTFT estimator, as a function of the number of analyzed signal cycles ν, which varies in the range [0.1, 2] cycles with a step of 0.05 cycles. SNR = 40 dB, M = 16 samples, and dx = 0.1 bins.

Fig. 4
figure 4

Noisy complex-valued sinewaves: NRMSE of the AM, the Fan, the PIpDTFT, and the LIpDTFT frequency estimators versus ν when SNR = 40 dB. The fractional shift is dx = 0.1 bins in both the PIpDTFT and the LIpDTFT estimators. For each value of ν 100,000 runs of M = 16 samples with sinewave phase chosen at random are considered

As we can see, the LIpDTFT frequency estimator has almost the same statistical efficiency as the Fan and the PIpDTFT estimators, except when coherent sampling occurs where the LIpDTFT and the Fan estimators outperform the PIpDTFT estimator. Moreover, these three estimators outperform the AM estimator for all the considered values of ν.

4.2 Weighted Signal

The Hann window is adopted to weight the acquired signal. Assuming the number of processed samples M >> 1, for that window we have [4]:

$$\widetilde{W}\left({d}_{x}\right)=\frac{{\text{sin}}\left(\pi {d}_{x}\right)}{2\pi {d}_{x}\left(1-{d}_{x}^{2}\right)},$$
(12)

from which, after some calculations, it follows that:

$$\widetilde{W^{\prime}}\left({d}_{x}\right)=\frac{\pi {d}_{x}{\text{cos}}\left(\pi {d}_{x}\right)\left(1-{d}_{x}^{2}\right)-{\text{sin}}\left(\pi {d}_{x}\right)\left(1-{3d}_{x}^{2}\right)}{2\pi {d}_{x}^{2}{\left(1-{d}_{x}^{2}\right)}^{2}}.$$
(13)

These expressions are used in the determination of the LIpDTFT frequency estimator (7) based on the Hann window even if small values of M are considered.

The QS estimator was not considered in the performed simulations since it holds only for the rectangular window [29].

Figure 5 shows the NRMSEs of the LIpDTFT and the PIpDTFT frequency estimators based on the Hann window as a function of SNR when ν = 2.3 cycles are observed, M = 16 samples, and the fractional shift dx is equal to 0.05 (Fig. 5a), 0.1 (Fig. 5b), and 0.3 (Fig. 5c) bins, respectively. As we can see, the LIpDTFT estimator slightly outperforms the PIpDTFT estimator, especially when the fractional shift dx is not very small.

Fig. 5
figure 5

Noisy complex-valued sinewaves: NRMSE of the PIpDTFT, and the LIpDTFT frequency estimators based on the Hann window versus SNR when ν = 2.3 cycles. The fractional shift dx is equal to 0.05 (a), 0.1 (b), and 0.3 (c) bins. For each SNR value 100,000 runs of M = 16 samples with sinewave phase chosen at random are considered

Figure 6 shows the RMSEs of the considered frequency estimators, all based on the Hann window, and the corresponding \(\sqrt{{\text{CRLB}}}\) as a function of SNR when ν = 2.3 cycles are observed and the number of samples M is equal to 4 (Fig. 6a), 8 (Fig. 6b), and 16 (Fig. 6c). In the PIpDTFT and LIpDTFT algorithm the fractional shift is dx = 0.1 bins.

Fig. 6
figure 6

Noisy complex-valued sinewaves: RMSEs of the Candan, the AM, the Fan, the PIpDTFT, and the LIpDTFT frequency estimators based on the Hann window, and the \(\sqrt{{\text{CRLB}}}\) versus SNR when ν = 2.3 cycles. The number of samples M is equal to 4 (a), 8 (b), and 16 (c). The fractional shift is dx = 0.1 bins in both the PIpDTFT and the LIpDTFT estimators. For each value of SNR 100,000 runs of M samples with sinewave phase chosen at random are considered

As it can be observed, when M = 4 samples the PIpDTFT frequency estimators outperforms the other estimators except for very low SNR values. For high SNR values the LIpDTFT estimator exhibits poor accuracy since the assumptions M >> 1 and M >> dx introduced to derive (13) no longer hold. However, when at least 8 samples are processed the RMSEs of all considered frequency estimators are close to the square root of the CRLB when SNR is not too small.

Figure 7 shows the NRMSE of the considered frequency estimators as a function of the number of analyzed signal cycles ν when SNR = 40 dB, M = 16 samples, and dx = 0.1 bins. The parameter ν was varied in the range [0.1, 2] cycles with a step of 0.05 cycles. As we can see, the LIpDTFT, the PIpDTFT, and the Fan frequency estimators exhibit almost the same accuracy. They outperform the Candan and the AM frequency estimators. Similar behavior has been observed for other values of the number of analyzed cycles ν.

Fig. 7
figure 7

Noisy complex-valued sinewaves: NRMSEs of the Candan, the AM, the Fan, the PIpDTFT, and the LIpDTFT frequency estimators based on the Hann window versus ν when SNR = 40 dB. The fractional shift is dx = 0.1 bins in both the PIpDTFT and the LIpDTFT estimators. For each value of ν 100,000 runs of M = 16 samples with sinewave phase chosen at random are considered

The accuracies of all considered frequency estimators were compared to each other also when the acquired signal is affected by harmonics. Figure 8 shows the obtained RMSEs as a function of the number of acquired sinewave cycles ν when the sinewave is affected by a 2nd and a 3rd complex-valued harmonics of amplitude 0.1 p.u. and 0.05 p.u., respectively. Both the rectangular (Fig. 8a) and the Hann (Fig. 8b) windows are considered. The SNR is equal to 40 dB and 100,000 records of M = 16 samples with the phases of all components selected at random were processed. The observation interval length ν was varied in the range [0.1, 5] cycles with a step of 0.05 cycles and the fractional shift dx is 0.1 bins in both the PIpDTFT and the LIpDTFT estimators.

Fig. 8
figure 8

Noisy and harmonically distorted complex-valued sinewaves: NRMSE of the considered frequency estimators versus the number of acquired sinewave cycles. a the Candan, the QS, the AM, the Fan, the PIpDTFT, and the LIpDTFT estimators based on the rectangular window; b the Candan, the AM, the Fan, the PIpDTFT, and the LIpDTFT estimators based on the Hann window. Signals affected by a 2nd and a 3rd complex-valued harmonics of amplitudes 0.1 p.u. and 0.05 p.u., respectively. SNR = 40 dB. For each value of ν 100,000 runs of M = 16 samples with the phases of all components chosen at random are considered

Figure 8a shows that the LIpDTFT, the PIpDTFT, the Fan, and the AM frequency estimators exhibit almost the same RMSEs. Their values have a decreasing trend when ν increases and reach minima and maxima when the fractional frequency δ is close to 0.5 or 0 bins, respectively. On the whole, the accuracy of these estimators is better than that of the QS estimator. Conversely, the Candan estimator often ensures better results when at least 2.5 cycles are observed.

Figure 8b shows that smaller RMSEs are obtained when the Hann window is used, thanks to its spectral leakage suppression capability. Also, the LIpDTFT, the PIpDTFT, the Fan, and the AM frequency estimators provide almost the same accuracy and, on the whole, it is smaller than that of the Candan estimator. When at least 4 cycles are observed, the RMSEs is almost constant since the contribution on the estimated frequency of the spectral interference from harmonics is dominated by the effect of wideband noise.

4.3 Computational Complexity Comparison

In the following the computational burdens required by the considered estimators are compared to each other. We assume that the number of analyzed sample M is a power of 2 so that the DFT can be evaluated by applying a basic FFT algorithm, which requires Mlog2M complex-valued additions (CVAs) and 0.5Mlog2M complex-valued multiplications (CVMs) [18]. Thus, the DFT evaluation requires the computation of 3Mlog2M real-valued additions (RVAs) and 2Mlog2M real-valued multiplications (RVMs). In all estimators, the integer part l of the number of analyzed signal cycles is determined through a peak search procedure applied to the DFT square module, which implies M RVAs and 2 M RVMs. The calculation of the DTFT of a M-length data sequence implies (M – 1) CVAs and M CVMs, which are equivalent to (4M – 2) RVAs and 4M RVMs. Thus, when using the rectangular window, good estimates of the overall number of real-valued additions and multiplications required by the considered algorithms are those reported in Table 2.

Table 2 Number of RVAs and RVMs required by the considered algorithms. Rectangular window is assumed

Table 2 shows that the Candan estimator exhibits the lowest processing effort, but it has a high noise sensitivity, as shown in Fig. 3. The proposed LIpDTFT estimator requires the smallest processing effort among the estimators that ensure the highest frequency estimation accuracy. The same conclusion holds when windowing is used in the Candan, the AM, the Fan, the PIpDTFT, and the LIpDTFT algorithms.

5 Conclusions

In this paper a two-point interpolated DTFT (LIpDTFT) estimator for complex-valued sinewave frequency based on the linearization of the DTFT module behavior around the spectrum peak has been proposed. The interpolation points are located close to the initial frequency estimate, which is obtained through the classical two-point IpDFT algorithm. The LIpDTFT estimator exhibits a smaller interpolation error than the parabolic IpDTFT estimator. Moreover, when the rectangular window is adopted, the LIpDTFT estimator variance almost attains the CRLB even if a very small number of samples is analysed. In addition, the LIpDTFT estimator exhibits a better noise rejection capability than the Candan [8], the AM [1], the QS [29], and the Fan [12] frequency estimators when the number of analysed samples is very small. Conversely, when the signal is weighted by a cosine window and at least 8 samples are processed, the LIpDTFT algorithm exhibits the same accuracy as the Fan frequency estimator, and it outperforms the Candan frequency estimator. In addition, the proposed algorithm requires a smaller processing effort than all other considered algorithms capable to almost attain the CRLB. Thus, due to its characteristics, the proposed LIpDTFT algorithms can be advantageously employed in real-time frequency estimation of complex-valued noisy sinewaves of interest for application fields such as communications and radar signal processing.