Next Article in Journal
Ethanol Concentration Sensing Using a 3D-Printed Microwave Cavity Resonator
Previous Article in Journal
Quantifying the Performance of Distributed Large-Volume Metrology Systems for Dynamic Measurements: Methodology Development
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Generalized Fractional Interpolated Discrete Fourier Transform with Rectangular Window for Frequency Estimation in Noisy Sinewave Signals

by
Fernando M. Janeiro
1,* and
Pedro M. Ramos
2,*
1
Instituto de Telecomunicações, Escola de Ciências e Tecnologia, Universidade de Évora, Largo dos Colegiais 2, 7004-516 Évora, Portugal
2
Instituto de Telecomunicações, Instituto Superior Técnico, Universidade de Lisboa, Av. Rovisco Pais 1, 1049-001 Lisboa, Portugal
*
Authors to whom correspondence should be addressed.
Metrology 2026, 6(1), 8; https://doi.org/10.3390/metrology6010008
Submission received: 4 December 2025 / Revised: 13 January 2026 / Accepted: 23 January 2026 / Published: 2 February 2026

Abstract

Accurate and efficient frequency estimation is essential in many scientific fields and has led to the development of various algorithms. Commonly used methods involve applying the Discrete Fourier Transform followed by spectral interpolation. This approach faces challenges especially under low signal-to-noise ratio conditions. To mitigate this limitation, the Generalized Fractional Interpolated Discrete Fourier Transform for frequency estimation of rectangular-windowed sinewaves is proposed. This non-iterative algorithm enhances frequency estimation by employing spectral components at fractional steps of the Discrete Fourier Transform frequency resolution. A non-iterative, closed-form equation for frequency estimation is derived, enabling efficient computation. The proposed algorithm is evaluated through numerical simulations and compared with existing interpolation methods for different frequencies, signal-to-noise ratios, and number of acquired samples. The method is validated using experimentally acquired sinewave signals.

1. Introduction

Frequency estimation of sinewaves is a critical task in many science and engineering domains [1,2,3]. Accurate frequency estimation plays a vital role in applications such as power quality monitoring [4,5], structural health assessment [6], radar signal processing [7], medical diagnostics [8] or communications [9,10]. For example, in power quality monitoring systems, accurate frequency tracking is essential for detecting grid disturbances, identifying harmonic distortion, and ensuring regulatory compliance with standards such as IEEE Std. 1159-2019 [11] or IEC 61000-4-30 [12]. To address the requirements of these applications, which may need real-time performance and resilience to noise, multiple frequency estimation algorithms have been proposed.
The concept of interpolation in the DFT spectrum was first introduced by Rife and Vincent [13]. A widely used, closed-form and computationally efficient implementation of a frequency interpolation algorithm was proposed by Renders et al. [14] which is referred to here as the Interpolated Discrete Fourier Transform (IpDFT). This method begins with the computation of the acquired signal Discrete Fourier Transform (DFT), followed by the spectral interpolation of two adjacent DFT lines to estimate the signal frequency. The interpolation is based on the theoretical spectral shape of a sinewave sampled with a rectangular window, allowing the algorithm to correct for the limited frequency resolution of the DFT. Besides the IpDFT algorithm presented in [14], multiple other frequency interpolation approaches have been developed, many including windowing techniques [15,16] as well as employing iterative methods [17]. In general, these interpolation techniques rely on spectral components that are spaced by the DFT frequency resolution, Δ f . This dependence introduces limitations, particularly when the signal frequency is close to a DFT bin center. In those cases, the neighboring spectral components used in the interpolation have low amplitude and are therefore more susceptible to noise which increases the frequency estimation Root Mean Square Error (RMSE). Although these algorithms have the ability to provide accurate estimates, their performance is degraded under low signal-to-noise ratio (SNR) conditions.
Aboutanios and Mulgrew [18] proposed an algorithm with two variants, where two Discrete Time Fourier Transform (DTFT) coefficients located at the midpoints of DFT bins are used for interpolation—the variants use different frequency estimation equations. The Fractional Interpolated Discrete Fourier Transform (FracIpDFT) algorithm proposed in [19] uses non-integer Goertzel filters [20] to compute DTFT components at fractional frequency intervals, specifically at integer multiples of Δ f / 2 , which are then used in the IpDFT algorithm [14] to estimate the signal frequency. Although the IpDFT algorithm was developed to use DFT spectral components, it was shown in [19] that it can be used with frequency components located at multiples of Δ f / 2 , as long as the two components used in the interpolation are Δ f spaced. This allows the FracIpDFT algorithm to avoid the use of spectral lines with very low amplitude, and therefore to outperform conventional interpolation methods. An alternative interpolation-based frequency estimation approach was introduced by Fan et al. [21], which also uses DTFT components spaced at Δ f / 2 . However, this method is restricted to the Δ f / 2 spacing value and relies on zero padding the signal to enhance frequency resolution, a process that distorts the original waveform.
Recent research has also included DTFT linearization and interpolation methods to obtain accurate frequency estimation of sinewaves [22] and iterative interpolation techniques to eliminate spectral leakage [23]. Other developments include DFT interpolation based on maximum sidelobe decay windows [24], autocorrelation followed by DTFT methods [25], and estimators optimized for short records [26]. Three-point interpolation techniques have also been extended for the frequency estimation of exponentially damped sinewaves [27,28].
This paper is an expansion of the work developed in [29] and proposes the Generalized Fractional Interpolated Discrete Fourier Transform (GFIpDFT) algorithm which is an enhanced frequency interpolation algorithm for acquired sinewaves processed with a rectangular window. It eliminates the constraint that interpolation must be performed solely with Δ f or Δ f / 2 spaced components. A closed-form equation to estimate the frequency is derived, using three equally spaced DTFT components: the dominant spectral component and two adjacent components positioned at selected fractional multiples of Δ f . The objective is that the selected spectral components have higher amplitude to enhance frequency estimation accuracy, since they are less affected by noise. The required extra DTFT components are obtained through the use of non-integer Goertzel filters [20]. While the algorithm can be applied iteratively, this study focuses on a non-iterative implementation to enable comparison with other non-iterative algorithms. Other interpolation algorithms use two-point and four-point interpolation. In the proposed algorithm the three-point algorithm is used because it is possible to obtain a simple to implement closed-form equation to estimate the frequency correction from the DFT components. Additionally, two-point interpolation algorithms have worse RMSE performance, while four-point interpolation introduces additional complexity.
The GFIpDFT algorithm is evaluated through numerical simulations that compare the estimated frequency RMSE against other state-of-the-art interpolation methods and the square root of the theoretical Cramér-Rao Lower Bound [30]. The analysis also investigates the influence of key parameters, including the signal-to-noise ratio, the number of acquired samples, and the fractional spacing level used in the interpolation process.
The novelty contributions of this paper are the detailed mathematical derivation of the closed-form frequency estimation equation and the experimental validation of the GFIpDFT algorithm. Additionally, the RMSE performance of the GFIpDFT is analyzed as a function of the frequency resolution fraction, as well as the frequency offset relative to the DFT bins, and both the numerical and experimental results are now presented in normalized units, which allows a more general application of the results. The proposed algorithm is also compared with additional interpolation-based frequency estimation algorithms. Finally, a comparison of the relative execution times is also presented, which is vital in the assessment of the practical suitability of each algorithm for their implementation in computational restricted embedded systems.
The contents of this document is divided into five sections including the Introduction and the Conclusions. Section 2 describes the proposed algorithm and presents the closed-form frequency interpolation equation—the detailed derivation is presented in Appendix A. In Section 3, the proposed method performance is compared with different interpolation algorithms through numerical simulations. The measurement results are presented in Section 4.

2. Frequency Estimation Algorithm

The samples of an acquired noisy sinewave are
x [ n ] = A cos 2 π f x f s n + ϕ + ϵ [ n ]
with frequency f x , amplitude A, and phase ϕ . n = 0 , 1 , 2 , , N 1 is the sample number, where N is the total number of samples acquired at sampling frequency f s and the DFT frequency resolution is Δ f = f s / N . Gaussian white noise with zero mean and σ n standard deviation is represented by the term ϵ [ n ] .
The objective of spectral interpolation algorithms is to estimate the sinewave frequency f x from a discrete number of DTFT components with
f ^ x = ( l + δ ^ ) Δ f
where l is the index of the largest DTFT component, and δ ^ is the estimated normalized frequency offset from the largest DTFT component. Each DTFT component has index k = f / Δ f and the signal (1) normalized frequency index is k x = f x / Δ f .
The generic theoretical spectrum of (1), with spectral leakage and when a rectangular window is used, is represented by the dashed black line in Figure 1. The solid vertical lines correspond to the DFT computed frequency components that are spaced at the frequency resolution Δ f .
Fan et al. [21] proposed an interpolated DFT method (Fan Alg) that starts by padding the original signal with N zeros to obtain a frequency resolution of Δ f / 2 and performing the DFT of the padded signal. Figure 2A shows the theoretical spectrum of the padded signal (dashed line), along with DFT components (vertical black lines) near the signal normalized frequency k x (vertical dotted line). The algorithm then chooses the component with highest amplitude and its two neighboring components, as shown by the vertical blue lines in Figure 2B, to estimate the sinewave frequency. However, this method requires the computation of an FFT with 2 N samples.
To increase noise immunity, this work proposes the GFIpDFT algorithm which estimates the frequency, without zero padding, and using extra DTFT components at fractional values of the DFT frequency resolution. The additional fractional DTFT components are spaced by α = 1 / p (where p N ). For example, the spectral lines in Figure 2 correspond to a fractional value α = 0.5 .
Without noise and when a rectangular window is considered, the DTFT of (1) is
X ( k ) = A 2 1 e j 2 π ( k k x ) 1 e j 2 π ( k k x ) N e j ϕ + 1 e j 2 π ( k + k x ) 1 e j 2 π ( k + k x ) N e j ϕ .
When the signal frequency is sufficiently away from DC and from f s / 2 , i.e., k x 0 and k x N / 2 , Equation (3) can be simplified by neglecting the effect of the second term, which corresponds to the negative frequency spectral image. If in addition a sufficiently large number of samples N 2 π | k k x | is used, (3) can be approximated by
X ( k ) A 2 e j ϕ 1 e j 2 π ( k k x ) j 2 π N ( k k x ) .
It should be noted that, for the DFT components, | k k x |     0.5 , and therefore, the condition N 2 π | k k x | corresponds to N > 30 . If DTFT with fractional values of k is used, the restriction on the number of samples is further reduced.
The GFIpDFT algorithm begins by performing a Fast Fourier Transform (FFT) on the acquired samples to determine the frequency index m corresponding to its largest spectral component. Since the m 1 and m + 1 components are already available from the FFT, the required ( 2 / α 2 ) extra DTFT components are computed in the range ( m 1 , m + 1 ) with step size α . To estimate the normalized frequency offset δ , the largest spectral component is considered with index k = l , i.e., X l = X ( l ) , and the neighboring components X l α = X ( l α ) , X l + α = X ( l + α ) , through
δ ^ = { α X l + α e j 2 π α 1 + X l α e j 2 π α 1 X l + α e j 2 π α 1 X l e j 2 π α e j 2 π α + X l α e j 2 π α 1 } .
The derivation of (5) is presented in Appendix A.
For example, when α = 0.5 as shown in Figure 3, the algorithm starts with obtaining the DFT of the signal and identifying its largest component m. Figure 3A illustrates this component along with its neighbors at m 1 and m + 1 . Two additional DTFT components are computed at the midpoint of the DFT frequencies (i.e., at indices m 0.5 and m + 0.5 ), as shown in Figure 3B. From these five components, the algorithm uses the component with the highest amplitude and its neighbors, assigning indices l, l 0.5 and l + 0.5 , respectively, as shown by the blue lines in Figure 3C. The complex amplitudes of these lines ( X l , X l α , and X l + α ) are used in (5) to estimate the normalized frequency offset δ ^ and the estimated frequency using (2).
Figure 4 presents a similar example but for the case with α = 0.2 . Initially the signal DFT is obtained and the largest component m and its neighbors are identified as shown in Figure 4A. Then, eight additional DTFT components are computed at locations m ± 0.2 , m ± 0.4 , m ± 0.6 and m ± 0.8 as shown in Figure 4B. From these eleven components, the algorithm selects the one with the highest amplitude along with its neighboring components, assigning them indices l, l 0.2 and l + 0.2 , represented by the blue lines in Figure 4C, which are then used to estimate the signal frequency.
In the GFIpDFT algorithm, the initial DFT is performed with an FFT which has a complexity of 6 N log 2 N [19], and the additional DTFT components are computed with ( 2 / α 2 ) non-integer Goertzel filters, each with 3 N computational complexity [19]. Therefore, the total computational complexity required to calculate the spectral components needed by the GFIpDFT algorithm is 6 N ( 1 α 1 ) + log 2 N . Additionally, a negligible amount of operations is required to apply (5) and (2).

3. Numerical Results

To evaluate the performance of the GFIpDFT algorithm, a simulated sinewave with amplitude A = 2 was used, sampled at f s with N points. Gaussian noise with RMS amplitude σ n was added to the signal. Each simulation was repeated 10 6 times, with the signal initial phase ϕ , for each repetition, randomly drawn from a uniform distribution over the [ π , π ) interval. The random phase is used to analyze the performance of the algorithms when there is no trigger used to start the acquisition which results in a random initial phase of the first sample.
The GFIpDFT algorithm, for three different values of α (1, 0.5 and 0.2), is compared with the Fan et al. algorithm (Fan Alg) [21], the FracIpDFT algorithm [19], the IpDFT algorithm [14], the two variants of the algorithm proposed by Aboutanios and Mulgrew (AM Alg1 and AM Alg2) [18] and the square root of the Cramér-Rao Lower Bound [30]
σ CRLB = f s 2 π 12 N ( N 2 1 ) SNR
where SNR = A 2 / ( 2 σ n 2 ) is the signal-to-noise ratio of the simulated signal.
The results presented in Figure 5 and Figure 6 show the RMSE, normalized to σ CRLB of the proposed algorithm as a function of the normalized frequency offset δ , and compares the results with other interpolation algorithms. The simulations were performed with N = 500 samples and f s = 500 kHz resulting in a spectral resolution of Δ f = 1 kHz. The signal frequency is in the range 123.5 , 124.5 kHz which corresponds to δ 0.5 , 0.5 .
Figure 5 shows the results for extremely noisy sinewaves with SNR = 0 dB, where the GFIpDFT algorithm, with α = 0.2 (thick blue line), presents the lowest RMSE of the estimated frequency for the full range of frequencies, which remains very close to σ CRLB . This is due to the three components used in (5) that are closer to each other (when compared to the frequency resolution) and therefore have higher amplitudes, resulting in a higher noise immunity. The GFIpDFT algorithm with α = 0.5 (dashed blue line), which is similar to the Fan Alg (with the exception of the zero padding used in [21]), is the second-best-performing algorithm, with its performance degrading when the frequency of the signal is located between the DTFT computed components (i.e., near δ = ± 0.25 ). The FracIpDFT algorithm has a similar behavior but with worse RMSE. Both AM algorithms exhibit good performance while the signal frequency is close to a DFT bin (i.e., δ near zero), but worse RMSE as the signal frequency is further away from a DFT bin. The GFIpDFT algorithm with α = 1 (thin blue line) shows no advantages since it only uses DFT frequency components. The IpDFT algorithm uses only the two highest amplitude DFT components, and in the situation where the signal frequency is near a DFT bin, the second component will have low amplitude, thus being very susceptible to be influenced by the noise in the signal. Therefore, under extremely noisy situations ( SNR = 0 dB), the IpDFT algorithm is the worst-performing algorithm, except when the signal frequency is near the middle of two DFT components (i.e., δ near ± 0.5 ). In these cases, the IpDFT algorithm uses two frequency components with high amplitude, which are less affected by signal noise.
Figure 6 presents the frequency estimation normalized RMSE as a function of the normalized frequency offset ( δ ) for (A) SNR = 20 dB and (B) SNR = 40 dB. In the 20 dB case, the GFIpDFT algorithm with α = 0.2 maintains a low RMSE / σ CRLB ratio and outperforms the other methods except when the signal frequency is close to the DTFT components at multiples of Δ f / 2 , where the FracIpDFT algorithm provides better results. For small values of δ (i.e., signal frequencies near DFT bins), the AM algorithms slightly outperform the proposed method, though their performance deteriorates as δ approaches ± 0.5 . A small difference in performance is observed between the Fan Alg results and those of the GFIpDFT algorithm with α = 0.5 because of the zero padding. The IpDFT algorithm, while effective when the frequency is not near DFT bins, suffers from a pronounced RMSE spike at δ = 0 due to the noise-induced random selection of neighboring DFT bins for interpolation.
These effects become more noticeable at lower noise levels, where σ CRLB is smaller. In the SNR = 40 dB situation, shown in Figure 6B, the FracIpDFT is the best overall performing algorithm, followed closely by the IpDFT algorithm, which continues to show degraded performance at δ close to 0. At this noise level, most algorithms display high RMSE / σ CRLB values. The results presented indicate that the GFIpDFT algorithm, especially with α = 0.2 , is particularly advantageous for frequency estimation of sinewaves with high noise content.
To further investigate how SNR affects the performance of the proposed GFIpDFT algorithm, Figure 7 and Figure 8 present the normalized estimated frequency RMSE as a function of SNR under different conditions of the number of acquired samples N and normalized frequency offset δ . Figure 7 presents the ratio RMSE / f x versus SNR for N = 500 samples in two scenarios: (A) δ = 0 , where the signal frequency aligns with a DFT bin, and (B) δ = 0.25 , where the frequency is between DFT bins. In both cases, the GFIpDFT algorithm with α = 0.2 achieves the lowest RMSE at low SNR levels. However, as SNR improves, the GFIpDFT algorithm and the two AM algorithms exhibit a plateau in the RMSE. This plateau, for GFIpDFT algorithm ( α = 0.2 ), is more pronounced in (A), occurring at just over 0.001%, while in (B) it appears at higher SNR values and with lower RMSE. The plateaus of the AM and Fan algorithms are similar to that of GFIpDFT algorithm ( α = 0.2 ) for δ = 0 , but level off at a higher RMSE for δ = 0.25 . Although the FracIpDFT and IpDFT algorithms continue to follow the σ CRLB trend without leveling off, for δ = 0.25 , they show greater deviation from the bound at low SNR, while the GFIpDFT algorithm ( α = 0.2 ) remains close to σ CRLB (see inset of Figure 7B).
To assess the influence of the number of samples, Figure 8 shows the ratio RMSE / f x for N = 125 samples with (A) δ = 0 and (B) δ = 0.25 . The conclusions are similar to those obtained for N = 500 samples, except that the RMSE values are about one order of magnitude higher. For δ = 0.25 , the deviation from σ CRLB at lower values of SNR for the IpDFT algorithm and FracIpDFT algorithm are more pronounced than what was observed for N = 500 samples.
The simulation results show that the algorithm that exhibits the best RMSE depends on the number of acquired samples and on the location of the signal frequency in relation to the DTFT computed components. However, for low values of SNR, the GFIpDFT algorithm ( α = 0.2 ) is consistently the best-performing algorithm, with RMSE values that closely follow the theoretical limit of σ CRLB .
Figure 9 presents an analysis of the behavior of the GFIpDFT algorithm, as the value of the fractional level α is changed, with SNR = 0 dB and N = 500 samples. The RMSE normalized to σ CRLB is shown as a function of α and normalized frequency offset δ . There is an improvement in the RMSE value until α = 1 / 5 , but for lower values of α , there are no significant improvements.

4. Measurement Results

To validate the proposed GFIpDFT algorithm, an experimental setup was implemented. An Agilent 33500B waveform generator [31], controlled by IEEE 488.2, was used to generate sinewaves with frequencies in the 123.5 , 124.5 kHz range, to replicate the simulation results. This generator can produce random noise with a programmable RMS amplitude and add it to the output sinewave, enabling control of the generated signal SNR. The amplitude of the generated sinewaves was A = 2 V and three noise levels were considered with σ n = 1 V, σ n = 0.1 V and σ n = 0.01 V, resulting in SNR = 0 dB, SNR = 20 dB and SNR = 40 dB, respectively. A 16-bit NI USB-6251 data acquisition device [32] was used in the ± 10 V range to acquire 10 5 records, each with N = 500 samples, at sampling frequency f s = 500 kHz.
Ideally, the exact sinewave frequency should be used in the RSME calculations. However, with real measurements, this value is not known due to uncertainty in the generator frequency and uncertainty in the sampling rate. Therefore, for the frequency RMSE calculations, the average frequency obtained using the GFIpDFT algorithm with α = 0.2 over the 10 5 acquired records for each δ value was used. This option is confirmed by the estimated RMSE results. An incorrect reference frequency would result in a consistent offset across the RMSE values of the other algorithms, but no such baseline deviation is present which validates the option to select the reference frequency.
To verify that the condition of the uniformly distributed random initial phase of the generated sinewaves is satisfied, histograms of the phase of each of the 10 5 records were produced. The results are shown in Figure 10A for f = 124 kHz and SNR = 40 dB and in Figure 10B for f = 124.25 kHz and SNR = 40 dB. The phase of each waveform was estimated using the three-parameter sine-fitting algorithm [33], with the above-described reference frequency estimation. The initial phases of the acquired records are uniformly distributed.
The experimental results for SNR = 0 dB, shown in Figure 11, closely replicate the simulation results presented in Figure 5, confirming the behavior of the normalized RMSE of all the algorithms across the δ range.
In particular, the GFIpDFT algorithm with α = 0.2 consistently achieved the lowest normalized RMSE, demonstrating its robustness and effectiveness in high-noise conditions. The relative performance of the remaining algorithms follow the pattern observed in the simulations.
Figure 12 presents the experimentally obtained normalized RMSE values for (A) SNR = 20 dB and (B) SNR = 40 dB . The conclusions drawn from these experimental results are consistent with those obtained from the simulations shown in Figure 6. A slight deviation is observed in the behavior of the AM Algorithm 2 near δ ± 0.5 in Figure 12B, when compared to the simulation. This discrepancy arises from a small offset in the experimental f x / Δ f ratio, which results in a shift in the actual δ values. This offset is also evident in the RMSE peak of the IpDFT algorithm, which is not exactly at δ = 0 , as was observed in the simulation results. It should be noted that this shift was expected as it arises from the experimental setup deviations in the signal generation frequency and the data acquisition sampling rate. The shift does not change the validity of the results presented.
The experimental results confirm that, for low values of SNR, the GFIpDFT algorithm with α = 0.2 is consistently the best-performing algorithm, achieving RMSE values that are close to the theoretical σ CRLB .

5. Conclusions

This paper introduces the Generalized Fractional Interpolated Discrete Fourier Transform (GFIpDFT) algorithm for frequency estimation of an acquired noisy sinewave and processed with a rectangular window. The algorithm is based on the interpolation of three Discrete Time Fourier Transform (DTFT) components, which can be selected from fractional multiples of the DFT frequency resolution. The algorithm starts by applying the FFT and identifying the largest amplitude FFT bin. For a pre-selected fractional value α , additional 2 / α 2 DTFT lines are computed around the peak FFT component using non-integer Goertzel filters. The interpolation is then performed using the component with the highest amplitude and its two neighboring lines. The frequency estimation is based on a closed-form equation, and the complete algorithm is non-iterative. The required number of extra computed DTFT components can be reduced by analyzing the relative amplitude of the already computed components.
The RMSE of the estimated frequency was evaluated across different signal frequencies, SNR levels, and number of acquired samples N. Comparisons with previously published interpolation-based frequency estimation algorithms demonstrated that the proposed method performs particularly well in noisy conditions, closely approaching the Cramér-Rao Lower Bound. However, its performance degrades as the SNR increases, primarily due to the approximations made in deriving the closed-form frequency estimation equation. Therefore, in practice, the use of the GFIpDFT algorithm is advantageous for low SNR, and α = 0.2 should be used unless there are not sufficient computational resources for its use.
A simple comparison of the time MATLAB, R2025b required to execute each algorithm was performed. To enable the comparison, a reference execution time is used which corresponds to the execution time of the FFT. Accordingly, the results which are presented in Table 1 correspond to the ratio between the execution time of the different algorithms and this FFT reference time. This normalization ensures that the results are independent of the used computer processing speed. The IpDFT is the fastest algorithm since it only requires the computation of the FFT followed by the interpolation equations. The AM Alg 1, AM Alg2, FracIpDFT and GFIpDFT algorithms require more execution time due to the number of additional DTFT components that need to be computed. For the GFIpDFT, the number of DTFT components increases for lower fractional values of α , i.e., α = 0.5 requires only two additional components, while α = 0.2 requires eight additional components. The Fan Alg has the largest execution time because of the initial FFT with 2 N points. It should be noted that the additional memory required for any α is low when compared with the memory required for the storage of the acquired samples and the initial FFT computation. Therefore, in resource-limited devices, the main constraint will be the time the algorithm requires to provide a frequency estimation, and a guideline of the relative execution time is provided in Table 1.
The simulation results were validated through measurement results, which confirmed the trends observed in the simulations. The proposed GFIpDFT algorithm (with α = 0.2 ) maintained its superior performance in low SNR scenarios. The experimental results closely matched the simulated RMSE results, thus validating the proposed GFIpDFT algorithm.
Future work within this topic might include the analysis on the use of other window functions. However, it is not clear if it will be possible to derive a closed-form expression as was demonstrated in Appendix A. In addition, the use of alternative windowing functions which are known to reduce the effect of spectral leakage may introduce other problems such as the requirement to have spectral components closer to the actual frequency sinewave, thus increasing the number of estimated spectral components.

Author Contributions

Conceptualization, F.M.J. and P.M.R.; methodology, F.M.J. and P.M.R.; software, F.M.J.; validation, P.M.R.; investigation, F.M.J. and P.M.R.; writing—original draft preparation, F.M.J.; writing—review and editing, F.M.J. and P.M.R. All authors have read and agreed to the published version of the manuscript.

Funding

This work is funded by national funds through FCT—Fundação para a Ciência e a Tecnologia, I.P., and, when eligible, co-funded by EU funds under project/support UID/50008/2025—Instituto de Telecomunicações, with DOI identifier https://doi.org/10.54499/UID/50008/2025.

Data Availability Statement

Data available on request from the authors.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A

This appendix presents the detailed derivation of the normalized frequency offset Equation (5) from the complex amplitudes of the three DTFT components used in the GFIpDFT algorithm.
For a sampled cosine signal
x [ n ] = A cos 2 π f x f s n + ϕ
the DTFT is
X ( k ) = n = 0 N 1 x [ n ] e j 2 π N k n = A 2 W ( k k x ) e j ϕ + W ( k + k x ) e j ϕ
where W ( k ) is the window function. For a rectangular window
W ( k ) = 1 e j 2 π k 1 e j 2 π N k
the DTFT is
X ( k ) = A 2 1 e j 2 π ( k k x ) 1 e j 2 π ( k k x ) N e j ϕ + 1 e j 2 π ( k + k x ) 1 e j 2 π ( k + k x ) N e j ϕ .
If k x 0 and k x N / 2 , the second term, corresponding to the negative frequency image, can be ignored and
X ( k ) A 2 e j ϕ 1 e j 2 π ( k k x ) 1 e j 2 π ( k k x ) N .
Additionally, if N 2 π | k k x | , then
e j 2 π N ( k k x ) 1 j 2 π N ( k k x )
and
X ( k ) A 2 e j ϕ 1 e j 2 π ( k k x ) j 2 π N ( k k x ) .
Considering three components located at k = l , k = l + α and k = l α , and that k x = l + δ , then, from (A7)
X l = X ( l ) = A 2 e j ϕ 1 e j 2 π δ j 2 π N δ ,
X l + α = X ( l + α ) = A 2 e j ϕ 1 e j 2 π ( δ α ) j 2 π N ( δ α ) ,
X l α = X ( l α ) = A 2 e j ϕ 1 e j 2 π ( δ + α ) j 2 π N ( δ + α ) .
Dividing (A8b) by (A8a) results in
X l + α X l = δ δ α 1 e j 2 π δ e 2 j π α 1 e j 2 π δ X l + α X l 1 α δ 1 e j 2 π δ = 1 e j 2 π δ e 2 j π α (A9) X l + α X l 1 α δ 1 = e j 2 π δ X l + α X l 1 α δ e j 2 π α .
Similarly, (A8c) and (A8a) results in
X l α X l 1 + α δ 1 = e j 2 π δ X l α X l 1 + α δ e j 2 π α .
Dividing (A10) by (A9) leads to
X l α X l 1 + α δ 1 X l + α X l 1 α δ 1 = X l α X l 1 + α δ e j 2 π α X l + α X l 1 α δ e j 2 π α (A11) X l α δ + α δ X l X l + α δ α δ X l = X l α δ + α e j 2 π α X l X l + α δ α e j 2 π α X l .
Factoring out δ on both sides of (A11),
δ X l α X l + α X l α δ X l + α X l α X l + α = δ X l α X l e j 2 π α + α X l α δ X l + α X l e j 2 π α α X l + α ,
and performing cross-multiplication,
δ 2 X l α X l X l + α X l e j 2 π α + α δ X l + α X l α δ X l α X l e j 2 π α = = δ 2 X l + α X l X l α X l e j 2 π α α δ X l α X l + α δ X l + α X l e j 2 π α δ X l 2 e j 2 π α X l + α X l X l α X l e j 2 π α + α X l + α X l α X l α X l e j 2 π α = = δ X l 2 e j 2 π α X l α X l X l + α X l e j 2 π α α X l α X l + α X l + α X l e j 2 π α δ X l e j 2 π α X l e j 2 π α X l + α + X l + α e j 2 π α + X l α X l α e j 2 π α = (A13) = α X l + α e j 2 π α + X l α e j 2 π α X l + α X l α ,
which finally results in the normalized frequency offset
δ = α X l + α e j 2 π α 1 + X l α e j 2 π α 1 X l + α e j 2 π α 1 X l e j 2 π α e j 2 π α + X l α e j 2 π α 1 .
Due to the inherent noise in the DTFT components X l α , X l and X l + α , and the approximations that led to (A14), a small residual imaginary component appears in (A14), and therefore, only its real part is used as the normalized frequency offset
δ ^ = { α X l + α e j 2 π α 1 + X l α e j 2 π α 1 X l + α e j 2 π α 1 X l e j 2 π α e j 2 π α + X l α e j 2 π α 1 } .

References

  1. Serbes, A. Fast and Efficient Sinusoidal Frequency Estimation by Using the DFT Coefficients. IEEE Trans. Commun. 2019, 67, 2333–2342. [Google Scholar] [CrossRef] [Scilit]
  2. Liu, N.; Fan, L.; Wu, H.; Jin, J.; Xing, J.; Liu, Z. DFT-Based Frequency Estimation of Multiple Sinusoids. IEEE Access 2022, 10, 40230–40236. [Google Scholar] [CrossRef] [Scilit]
  3. Lušin, T.; Agrež, D. Estimation of the amplitude square using the interpolated discrete Fourier transform. Metrol. Meas. Syst. 2011, 18, 583–596. [Google Scholar] [CrossRef] [Scilit]
  4. Liang, C.; Teng, Z.; Li, J.; Yao, W.; Wang, L.; He, Q.; Hu, S. Improved S-Transform for Time-Frequency Analysis for Power Quality Disturbances. IEEE Trans. Power Deliv. 2022, 37, 2942–2952. [Google Scholar] [CrossRef] [Scilit]
  5. Radil, T.; Ramos, P.M.; Serra, A.C. New Spectrum Leakage Correction Algorithm for Frequency Estimation of Power System Signals. IEEE Trans. Instrum. Meas. 2009, 58, 1670–1679. [Google Scholar] [CrossRef] [Scilit]
  6. Gelman, L. The New Frequency Response Functions for Structural Health Monitoring. Eng. Struct. 2010, 32, 3994–3999. [Google Scholar] [CrossRef] [Scilit]
  7. Ding, M.; Ding, Y.; Lv, P.; Tang, B.; Liu, R. A High-Resolution End-to-End Frequency Estimation Algorithm is Applied to Radar Range Profiles. IEEE Trans. Aerosp. Electron. Syst. 2025, 61, 8411–8421. [Google Scholar] [CrossRef] [Scilit]
  8. Leske, S.; Dalal, S.S. Reducing power line noise in EEG and MEG data via spectrum interpolation. NeuroImage 2019, 189, 763–776. [Google Scholar] [CrossRef] [Scilit]
  9. Belega, D.; Macii, D.; Petri, D. Fast Synchrophasor Estimation by Means of Frequency-Domain and Time-Domain Algorithms. IEEE Trans. Instrum. Meas. 2014, 63, 388–401. [Google Scholar] [CrossRef] [Scilit]
  10. Bellili, F.; Selmi, Y.; Affes, S.; Ghrayeb, A. A Low-Cost and Robust Maximum Likelihood Joint Estimator for the Doppler Spread and CFO Parameters Over Flat-Fading Rayleigh Channels. IEEE Trans. Commun. 2017, 65, 3467–3478. [Google Scholar] [CrossRef] [Scilit]
  11. IEEE Std 1159-2019 (Revision of IEEE Std 1159-2009); IEEE Recommended Practice for Monitoring Electric Power Quality. IEEE Standard Association: Piscataway, NJ, USA, 2019; pp. 1–98. [CrossRef] [Scilit]
  12. IEC 61000-4-30:2015+A1:2021; Electromagnetic Compatibility (EMC)—Part 4-30: Testing and Measurement Techniques—Power Quality Measurement Methods. International Electrotechnical Commission: Geneva, Switzerland, 2021. https://webstore.iec.ch/en/publication/68642.
  13. Rife, D.C.; Vincent, G.A. Use of the discrete fourier transform in the measurement of frequencies and levels of tones. Bell Syst. Tech. J. 1970, 49, 197–228. [Google Scholar] [CrossRef] [Scilit]
  14. Renders, H.; Schoukens, J.; Vilain, G. High-Accuracy Spectrum Analysis of Sampled Discrete Frequency Signals by Analytical Leakage Compensation. IEEE Trans. Instrum. Meas. 1984, 33, 287–292. [Google Scholar] [CrossRef] [Scilit]
  15. Duda, K.; Barczentewicz, S. Interpolated DFT for sinα(x) Windows. IEEE Trans. Instrum. Meas. 2014, 63, 754–760. [Google Scholar] [CrossRef] [Scilit]
  16. Agrež, D. Dynamics of Frequency Estimation in the Frequency Domain. IEEE Trans. Instrum. Meas. 2007, 56, 2111–2118. [Google Scholar] [CrossRef] [Scilit]
  17. Wang, K.; Wen, H.; Li, G.; Wang, L. Iterative Two-Point Interpolated DFT Algorithm for Accurate Frequency Estimation. IEEE Trans. Power Deliv. 2022, 37, 1671–1681. [Google Scholar] [CrossRef] [Scilit]
  18. Aboutanios, E.; Mulgrew, B. Iterative Frequency Estimation by Interpolation on Fourier Coefficients. IEEE Trans. Signal Process. 2005, 53, 1237–1242. [Google Scholar] [CrossRef] [Scilit]
  19. Rodrigues, N.M.; Janeiro, F.M.; Ramos, P.M. Implementation of Goertzel-based frequency estimation for power quality monitoring in embedded measurement systems. Metrol. Meas. Syst. 2022, 29, 455–468. [Google Scholar] [CrossRef] [Scilit]
  20. Sysel, P.; Rajmic, P. Goertzel algorithm generalized to non-integer multiples of fundamental frequency. EURASIP J. Adv. Signal Process. 2012, 2012, 56. [Google Scholar] [CrossRef] [Scilit]
  21. Fan, L.; Qi, G.; Xing, J.; Jin, J.; Liu, J.; Wang, Z. Accurate Frequency Estimator of Sinusoid Based on Interpolation of FFT and DTFT. IEEE Access 2020, 8, 44373–44380. [Google Scholar] [CrossRef] [Scilit]
  22. Belega, D.; Petri, D. Complex-Valued Noisy Sinewaves Frequency Estimator Based on DTFT Linearization and Interpolation. Circuits Syst. Signal Process. 2024, 43, 4624–4642. [Google Scholar] [CrossRef] [Scilit]
  23. Lu, J.; Wei, B.; Wang, K.; Tang, L.; Tang, X. An Iterative IpDFT Method for Frequency Estimation with Elimination of the Spectral Leakage. IEEE Access 2025, 13, 79784–79792. [Google Scholar] [CrossRef] [Scilit]
  24. Fan, L.; Qi, G.; Liu, J.; Jin, J.; Liu, L.; Xing, J. Frequency estimator of sinusoid by interpolated DFT method based on maximum sidelobe decay windows. Signal Process. 2021, 186, 108125. [Google Scholar] [CrossRef] [Scilit]
  25. Song, H.; Fan, L.; Liu, J.; Wu, H.; Li, M.; Qi, G. Efficient Frequency Estimation of Sinusoid Based on Autocorrelation and Discrete Time Fourier Transform. Circuits Syst. Signal Process. 2024, 43, 4675–4689. [Google Scholar] [CrossRef] [Scilit]
  26. Zhang, J.; Zou, J.; Xu, X.; Li, C.; Song, J.; Wen, H. High accuracy DFT-based frequency estimator for sine-wave in short records. Measurement 2025, 239, 115456. [Google Scholar] [CrossRef] [Scilit]
  27. Belega, D.; Petri, D. Accurate Sinusoid Frequency and Damping Factor Estimation by Means of Three-Point Interpolated DTFT Algorithms. IEEE Trans. Instrum. Meas. 2025, 74, 6503113. [Google Scholar] [CrossRef] [Scilit]
  28. Zhao, X.; Fan, L.; Lu, L.; Xu, C.; Qiu, Y.; Jin, J. Estimation for Frequency and Damping Factor of Exponentially Damped Complex Sinusoid. Circuits Syst. Signal Process. 2025. [Google Scholar] [CrossRef] [Scilit]
  29. Janeiro, F.M.; Ramos, P.M. Sinewave Frequency Estimation Based on Fractional Interpolated Discrete Fourier Transform. In Proceedings of the IMEKO 2024 XXIV World Congress, Hamburg, Germany, 26–29 August 2024; p. 561. [Google Scholar]
  30. Kay, S.M. Fundamentals of Statistical Signal Processing: Estimation Theory; Prentice Hall: Hoboken, NJ, USA, 1993; ISBN 978-0-13-345711-7. [Google Scholar]
  31. Agilent Technologies. User’s Guide, Agilent 33500 Series 30 MHz Function/Arbitrary Waveform Generator; Agilent Technologies: Santa Clara, CA, USA, 2010. [Google Scholar]
  32. National Instruments. NI USB-6251 Specifications. 2025. Available online: https://www.ni.com/docs/en-US/bundle/pci-pcie-pxi-pxie-usb-6251-specs/page/specs.html (accessed on 14 February 2025).
  33. IEEE Std 1057-2017 (Revision of IEEE Std 1057-2007); IEEE Standard for Digitizing Waveform Recorders. IEEE Standard Association: Piscataway, NJ, USA, 2018. [CrossRef] [Scilit]
Figure 1. Generic theoretical spectrum of a sinewave with spectral leakage (dashed black line). The dotted vertical line marks the waveform normalized frequency index k x . The vertical solid lines are DFT components ( m N ) near k x . δ is the sinewave normalized frequency offset which interpolation algorithms aim to estimate.
Figure 1. Generic theoretical spectrum of a sinewave with spectral leakage (dashed black line). The dotted vertical line marks the waveform normalized frequency index k x . The vertical solid lines are DFT components ( m N ) near k x . δ is the sinewave normalized frequency offset which interpolation algorithms aim to estimate.
Metrology 06 00008 g001
Figure 2. Generic theoretical spectrum of a sinewave padded with N zeros with spectral leakage (dashed black line) as proposed in [21]. The vertical dotted line marks the normalized frequency index k x . In (A), the vertical black lines are the DFT components obtained with resolution Δ f / 2 . The blue lines in (B) show the three components corresponding to the highest DFT component ( m + 0.5 ) and its neighbors (m and m + 1 ). In this case, the index of the largest component is l = m + 0.5 .
Figure 2. Generic theoretical spectrum of a sinewave padded with N zeros with spectral leakage (dashed black line) as proposed in [21]. The vertical dotted line marks the normalized frequency index k x . In (A), the vertical black lines are the DFT components obtained with resolution Δ f / 2 . The blue lines in (B) show the three components corresponding to the highest DFT component ( m + 0.5 ) and its neighbors (m and m + 1 ). In this case, the index of the largest component is l = m + 0.5 .
Metrology 06 00008 g002
Figure 3. Generic spectrum of a sinewave (dashed line) with normalized frequency index k x . The largest DFT component and its neighbors, with indices m, m 1 and m + 1 are shown by the solid vertical lines in (A). For α = 0.5 , two additional DTFT components are computed at m 0.5 and m + 0.5 , as shown in (B). In (C), the three selected components (blue lines) which are used in the GFIpDFT algorithm are represented. The fractional index l is attributed to the highest amplitude component, while its neighbors have indices l 0.5 and l + 0.5 . The estimated normalized frequency offset δ ^ is computed by (5) to estimate the signal frequency using (2).
Figure 3. Generic spectrum of a sinewave (dashed line) with normalized frequency index k x . The largest DFT component and its neighbors, with indices m, m 1 and m + 1 are shown by the solid vertical lines in (A). For α = 0.5 , two additional DTFT components are computed at m 0.5 and m + 0.5 , as shown in (B). In (C), the three selected components (blue lines) which are used in the GFIpDFT algorithm are represented. The fractional index l is attributed to the highest amplitude component, while its neighbors have indices l 0.5 and l + 0.5 . The estimated normalized frequency offset δ ^ is computed by (5) to estimate the signal frequency using (2).
Metrology 06 00008 g003
Figure 4. Generic spectrum of a sinewave (dashed line) with frequency index k x . The largest DFT component and its neighbors, with indices m, m 1 and m + 1 are shown by the solid vertical lines in (A). For α = 0.2 , eight additional DTFT components are computed at m ± 0.2 , m ± 0.4 , m ± 0.6 and m ± 0.8 , as shown in (B). In (C), the three components (blue lines) used in the GFIpDFT algorithm are represented. The fractional index l is attributed to the highest amplitude component, while its neighbors have indices l 0.2 and l + 0.2 . The estimated normalized frequency offset δ ^ is computed by (5) to estimate the signal frequency using (2).
Figure 4. Generic spectrum of a sinewave (dashed line) with frequency index k x . The largest DFT component and its neighbors, with indices m, m 1 and m + 1 are shown by the solid vertical lines in (A). For α = 0.2 , eight additional DTFT components are computed at m ± 0.2 , m ± 0.4 , m ± 0.6 and m ± 0.8 , as shown in (B). In (C), the three components (blue lines) used in the GFIpDFT algorithm are represented. The fractional index l is attributed to the highest amplitude component, while its neighbors have indices l 0.2 and l + 0.2 . The estimated normalized frequency offset δ ^ is computed by (5) to estimate the signal frequency using (2).
Metrology 06 00008 g004
Figure 5. Simulated RMSE normalized to σ CRLB as a function of the normalized frequency offset δ for different frequency estimation algorithms with SNR = 0 dB and N = 500 samples.
Figure 5. Simulated RMSE normalized to σ CRLB as a function of the normalized frequency offset δ for different frequency estimation algorithms with SNR = 0 dB and N = 500 samples.
Metrology 06 00008 g005
Figure 6. Simulated RMSE normalized to σ CRLB as a function of the normalized frequency offset δ for different frequency estimation algorithms with N = 500 samples and (A) SNR = 20 dB and (B) SNR = 40 dB.
Figure 6. Simulated RMSE normalized to σ CRLB as a function of the normalized frequency offset δ for different frequency estimation algorithms with N = 500 samples and (A) SNR = 20 dB and (B) SNR = 40 dB.
Metrology 06 00008 g006
Figure 7. RMSE normalized to signal frequency f x , as a function of SNR for the different frequency estimation algorithms, with N = 500 samples, for (A) δ = 0 and (B) δ = 0.25 . The insets zoom in the SNR = [ 5 , 7 ] dB region to highlight the deviation from the σ CRLB of the different algorithms.
Figure 7. RMSE normalized to signal frequency f x , as a function of SNR for the different frequency estimation algorithms, with N = 500 samples, for (A) δ = 0 and (B) δ = 0.25 . The insets zoom in the SNR = [ 5 , 7 ] dB region to highlight the deviation from the σ CRLB of the different algorithms.
Metrology 06 00008 g007
Figure 8. RMSE normalized to signal frequency f x , as a function of SNR for the different frequency estimation algorithms, with N = 125 samples, for (A) δ = 0 and (B) δ = 0.25 . The insets zoom in the SNR = [ 5 , 7 ] dB region to show how close each algorithm is to σ CRLB .
Figure 8. RMSE normalized to signal frequency f x , as a function of SNR for the different frequency estimation algorithms, with N = 125 samples, for (A) δ = 0 and (B) δ = 0.25 . The insets zoom in the SNR = [ 5 , 7 ] dB region to show how close each algorithm is to σ CRLB .
Metrology 06 00008 g008
Figure 9. Frequency estimation RMSE normalized to the σ CRLB as a function of fractional level α and normalized frequency offset δ in the GFIpDFT algorithm, for SNR = 0 dB and N = 500 samples.
Figure 9. Frequency estimation RMSE normalized to the σ CRLB as a function of fractional level α and normalized frequency offset δ in the GFIpDFT algorithm, for SNR = 0 dB and N = 500 samples.
Metrology 06 00008 g009
Figure 10. Phase distribution of the 10 5 acquired records for (A) f = 124 kHz and (B) f = 124.25 kHz.
Figure 10. Phase distribution of the 10 5 acquired records for (A) f = 124 kHz and (B) f = 124.25 kHz.
Metrology 06 00008 g010
Figure 11. Experimental RMSE normalized to the σ CRLB as a function of the normalized frequency offset δ for different frequency estimation algorithms with SNR = 0 dB and N = 500 samples.
Figure 11. Experimental RMSE normalized to the σ CRLB as a function of the normalized frequency offset δ for different frequency estimation algorithms with SNR = 0 dB and N = 500 samples.
Metrology 06 00008 g011
Figure 12. Experimental RMSE normalized to σ CRLB as a function of the normalized frequency offset δ for different frequency estimation algorithms with (A) SNR = 20 dB and (B) SNR = 40 dB and N = 500 samples.
Figure 12. Experimental RMSE normalized to σ CRLB as a function of the normalized frequency offset δ for different frequency estimation algorithms with (A) SNR = 20 dB and (B) SNR = 40 dB and N = 500 samples.
Metrology 06 00008 g012
Table 1. Normalized MATLAB execution time of the analyzed algorithms with N = 500 samples. The normalization is referenced to the FFT execution time with the same number of samples.
Table 1. Normalized MATLAB execution time of the analyzed algorithms with N = 500 samples. The normalization is referenced to the FFT execution time with the same number of samples.
AlgorithmNormalized Execution Time
GFIpDFT with  α = 1 11.0
GFIpDFT with  α = 0.5 11.4
GFIpDFT with  α = 0.2 15.3
Fan Alg [21]25.8
FracIpDFT [19]15.2
IpDFT [14]5.4
AM Alg 1 [18]12.3
AM Alg 2 [18]11.6
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Janeiro, F.M.; Ramos, P.M. Generalized Fractional Interpolated Discrete Fourier Transform with Rectangular Window for Frequency Estimation in Noisy Sinewave Signals. Metrology 2026, 6, 8. https://doi.org/10.3390/metrology6010008

AMA Style

Janeiro FM, Ramos PM. Generalized Fractional Interpolated Discrete Fourier Transform with Rectangular Window for Frequency Estimation in Noisy Sinewave Signals. Metrology. 2026; 6(1):8. https://doi.org/10.3390/metrology6010008

Chicago/Turabian Style

Janeiro, Fernando M., and Pedro M. Ramos. 2026. "Generalized Fractional Interpolated Discrete Fourier Transform with Rectangular Window for Frequency Estimation in Noisy Sinewave Signals" Metrology 6, no. 1: 8. https://doi.org/10.3390/metrology6010008

APA Style

Janeiro, F. M., & Ramos, P. M. (2026). Generalized Fractional Interpolated Discrete Fourier Transform with Rectangular Window for Frequency Estimation in Noisy Sinewave Signals. Metrology, 6(1), 8. https://doi.org/10.3390/metrology6010008

Article Metrics

Back to TopTop