Abstract
Maximally-flat (MAXFLAT) finite impulse response (FIR) filters often face a problem of the cutoff-frequency error due to approximation of the desired frequency response by some closed-form solution. So far, there have been plenty of efforts to design such a filter with an arbitrarily specified cut off-frequency, but this filter type requires extensive computation and is not MAXFLAT anymore. Thus, a computationally efficient and effective design is needed for highly accurate filters with desired frequency characteristics. This paper describes a new method for designing cutoff-frequency-fixing FIR filters through the cutoff-frequency error compensation of MAXFLAT FIR filters. The proposed method provides a closed-form Chebyshev polynomial containing a cutoff-error compensation function, which can characterize the “cutoff-error-free” filters in terms of the degree of flatness for a given order of filter and cut off-frequency. This method also allows a computationally efficient and accurate formula to directly determine the degree of flatness, so that this filter type has a flat magnitude characteristic both in the passband and the stopband. The remarkable effectiveness of the proposed method in design efficiency and accuracy is clearly demonstrated through various examples, indicating that the cutoff-fixing filters exhibit amplitude distortion error of less than 10−14 and no cut off-frequency error. This new approach is shown to provide significant advantages over the previous works in design flexibility and accuracy.
1. Introduction
The theory, design, and application of a finite impulse response (FIR) filter with mathematical analysis have been widely studied [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]. Among them, especially, maximally-flat (MAXFLAT) FIR filters, which are known for their design simplicity, accuracy, and high stopband attenuation, have an important role in some applications, such as waveform transmission and audio/image processing [3,4,5,6,7,8,9,10,11,12,13,14]. The basic idea for the design of MAXFLAT FIR filters is based on the well-known closed-form transform function and is realized due to its closed-form polynomial [7,8,9,15,16,17,18]. However, previous MAXFLAT FIR filter designs involve approximation of the desired frequency response by some closed-form polynomial, like a Hermite Interpolation [15], Miller’s conformal mapping [16], Bernstein polynomial [10,17], Fahmy’s Integral method [18], or Krawtchouk polynomial [19], which is then mapped to the filter function by certain transformations. The MAXFLAT FIR filter by any closed-form polynomial does not have any independent (“free”) parameters. This is due to the fact that the maximum possible number of zeros at is imposed, which leaves no degree of freedom, and, thus, no independent parameters. Thus, there is no direct control over the frequency response to obtain such a filter with a prescribed specified cut off-frequency. For that reason, the magnitude response of this filter type never passes through the desired cut off-frequency [19,20,21,22]. In order to overcome such a difficulty, there have been many efforts for comprising independent parameters in a closed-form function and, then, frequency response by (modified) closed-form function is controllable by these parameters. FIR filters using such a closed-form function including controllable parameters are no longer MAXFLAT, and, thus, various design methods have been published recently to obtain a best frequency response [7,8,9,10,11,12,13,14,23]. Jeon et al. have reported a closed-form least error gain method [23] for the design of FIR filters with both a flat magnitude and exact cut off-frequency. However, this method has the disadvantage of requiring a lot of computation processing for estimating the order of flatness, so that the error frequency function is closest to a zero gain at all frequencies [23]. It also sometimes has the frequency response distortion by wrongly determining the order of flatness. Huang et al. have proposed a closed-form weighted least square design to obtain FIR filters with exact cut off-frequency. However, this method has the disadvantage of providing non-negligible amplitude distortions of more than 4.2% by the Gibbs effect despite allowing a large amount of computation for estimating a convolution window [7,8]. Tseng and Lee introduced a closed-form design by mapping three discrete transforms, but there is a serious problem, such that filter cutoff-frequency error rapidly increases with growing cut off-frequency [9]. Recently, Roy et al. have reported Chebyshev closed-form FIR filters using a Bernstein polynomial [10]. They can reduce the filter design complexity by using a specific threshold value, but non-negligible amplitude distortions are in the stopband and passband. Hence, a computationally efficient design is needed for highly accurate filters with desired frequency characteristics, i.e., magnitude response exactly passes through prescribed, specified cutoff-frequency and is maximally flat in both the passband and the stopband.
The objective of this paper is to present a new method for the design of cut off-frequency fixing filters using a “cut off-error-free” polynomial function. For this purpose, a frequency-response error compensation function between the desired and actual frequency responses is derived through the generalization of the three closed-form polynomials [10,15,16,17] into a Chebyshev polynomial form. The proposed method provides a closed-form Chebyshev polynomial to characterize this filter type in terms of the degree of flatness for a given order of filter and cut off-frequency. Then, the magnitude response passes exactly through the prescribed specified cut off-frequency, and the filter also has independent (“free”) parameters that permit direct control over the frequency response, i.e., there is a tradeoff between the transition bandwidth and the magnitude flatness [24]. Finally, to determine the degree of flatness, so that a (cut off-frequency fixing) filter has a flat magnitude response characteristic for a given order of filter and cut off-frequency, a computationally efficient and accurate formula is derived from the cut off error compensation function.
This paper is organized as follows. In Section 2, we propose a closed-form error function for the cut off-error compensation of MAXFLAT FIR filters and introduce a closed-form Chebyshev polynomial to design cut off-frequency fixing filters. In Section 3, through the analysis of this error compensation function, we provide an exact and direct expression to choose a cutoff-frequency fixing FIR filter with a desired frequency response. Design examples that demonstrate the power of the new technique are shown. Conclusions are drawn in Section 4.
2. Closed-Form Chebyshev Polynomial for Cutoff-Frequency Fixing Filter Design
The transfer function of a symmetric linear-phase FIR filter with the impulse response of order is written as:
where is the Chebyshev polynomial of the first kind of degree n, and the independent transformed variable [25] is related to the digital domain by:
confined to the interval [−1, 1]. The frequency response of the filter can be expressed as:
by using the zero-phase transfer function which represents a polynomial of the real variable , . Then, the filter can be said to be lowpass and MAXFALT if has the following properties:
where N − K and K represent orders of flatness at and , respectively. It is shown, based on the results of [10,15,16,17], that such a lowpass function can be accomplished by using one of the closed-form polynomials, namely, Hermite Interpolation polynomial [15], Miller’s conformal mapping function [16], and Bernstein polynomial [10,17], which are expressed, respectively, as:
where and . The work in [10,17] reported a functional equivalence between Equations (7)–(9). Kaiser [26] also established a link between Herrmann’s polynomial Equation (7) and Fahmy’s Integral [18]. Consequently, this implies that all MAXFLAT FIR filters published so far can be expressed as one and the same closed-form solution. By using the transformations and on Equations (7)–(9), such a filter can be expressed by a generalized closed-form function as below.
The Chebyshev polynomial form of Equation (10) can be obtained as:
by using the Chebyshev representation equation:
where interpolation coefficients are expressed as [23]:
Computation of in Equation (1), using Equation (12), is reported in [23,27,28]. In a similar way, by mapping Equation (11) to Equation (1), a relational formula between and can be obtained as:
where if or . It can be seen from Equation (11) that, for a given , there are possible filters (with different cutoff points) corresponding to to . Thus, to determine suitable to a desired cutoff point of , existing methods [15,16,17,18,20] typically use the empirical expression (Herrmann used this term without explicitly defining the relation ([15], Equation (11))) given by Herrmann [15] as follows:
where for a give cutoff-frequency , and denotes the integer part of . For this reason, the classical designs naturally involve an approximate cut off-frequency error [20,22,23]. For example, in the case of (corresponding to in Reference [15]), Figure 1 shows the MAXFLAT FIR filters, which are chosen according to Equation (10) when using Equation (15). It is shown that the MAXFLAT FIR filter has both a passband and stopband that are maximally flat, but its magnitude response never passes through the desired cut off-frequency. Particularly, as the order of filter becomes lower, the cut off-frequency error becomes larger.
Figure 1.
Maximally-flat (MAXFLAT) finite impulse response (FIR) filters: with various for .
One of the main difficulties for MAXFLAT FIR filter design is to express the objective error function in a closed form [27]. This is due to the fact that the MAXFLAT FIR filter by any closed-form polynomial does not have any design (“free”) parameters. Thus, the objective error function has to be derived between the desired and actual variable frequency responses [23,29,30]. Referring to an objective function used in Reference [23], we can define a closed-form error compensation function between a cut off-frequency fixing filter with a desired cut off point at and the closed-form polynomial filter of Equation (10).
where is for normalization and is a cut off-error compensation factor. Then, can be obtained in terms of and as:
by substituting into the relation of Equation (16) with . Consequently, adding into can yield a “cutoff-error-free” filter with a cut off-frequency controllable by :
where Equation (18) consists of adding Equation (16) to Equation (10). More importantly, passes exactly through the desired cutoff point , that is, always satisfies the cutoff condition, , regardless of the values of and .
From Equation (18), it can be seen that is added as an extra term to the -th coefficient in the sum (of the second term of given in Equation (10)) without increasing the order of the filter. Then, small changes of the interpolation coefficients in Equation (13) due to adding can be obtained as:
by transforming Equation (16) into Equation (11). Hence, new caused by adding to consist of adding Equation (19) to Equation (13).
As shown in Equation (18), using for the cut off-frequency error compensation of leads to a closed-form Chebyshev polynomial, which can characterize cut off-frequency fixing FIR filters as a “cut off-error free” in terms of . However, the frequency response (i.e., ) of Equation (18) including Equation (16) no longer satisfies Equation (5). This is due to the fact that, for a given and , there are different “cut off-error free” filters with different magnitudes responses caused by different corresponding to to . For this reason, if a wrong (i.e., wrong is chosen, it will have a negative effect on the flatness of even though is MAXFLAT. Hence, it is necessary to select exactly so that compensates for the cutoff error of without damaging the flatness in the passband or the stopband.
3. The Order of Flatness (K)
In this section, given in Equation (18) is analysed for building a computationally efficient and accurate solution to determine an optimal value of for a given and .
As mentioned earlier, for the cut off-frequency error compensation of using potentially leads to with its magnitude response exactly passing through the prescribed cutoff point . However, the wrong choice of results in significant magnitude-distortions due to the undesired amplitude of the . Thus, to determine exactly, so that compensates for the cut off-frequency error of without damaging the flatness, which is a simple and complete formula-based solution that has to be built on . Actually, in the case of Reference [23] using a distortion error function, they had proposed an iteration training method (see Figure 4 in Reference [23]) of estimating a minimum-distortion error function to determine for a given and . However, this method has the disadvantage of requiring complicated and enormous computation processing for obtaining a suitable one among N different distortion error functions. This computation complexity increases rapidly with increasing N, which is the order of the filter. In addition, it sometimes has the frequency-response distortion by wrongly determining . For this reason, a computationally efficient and accurate formula has to be needed for the design of such a filter.
From Equation (18), it is seen that exhibits a “bell-curve-like” shape, which only has one peak gain, and zero gain at (corresponding to and ). Thus, the peak and inflection points of can play important roles in identifying influential observations in terms of for a given and . These points can be used to thoroughly characterize the effect of on in terms of . If is the peak point of , is given as:
from and, then, the peak value can be obtained in terms of as:
by substituting Equation (21) into Equation (16) with . In addition, letting and be two inflection points of , from we can get:
where (double signs in the same order) denotes and , and can also be obtained in terms of by substituting Equation (23) into Equation (16) with . By substituting Equation (21) into Equation (23), can be rewritten in terms of as:
From Equation (24), it is seen that and are related to by:
and satisfy the inequality . This means that the shape of is not perfectly symmetric about the line and can lead to inequalities not only between and inflection points (i.e., , and ) in terms of but also between and inflection gains (i.e., , and ). For example, in the case of and , Figure 2 shows corresponding to and the related parameters are indicated in Table 1, where , , and have been obtained according to Equations (17), (21) and (23). Figure 3 also shows , , and for each case of the four ranges described in Table 1 where the prescribed cut off point falls into one of the following four ranges due to the choice of : , , and . From these examples, it can be found that the undesired magnitude of around
causes not only overshoot in the passband of if (i.e., or ) for a given , but also undershoot in the stopband if . However, in these cases, can have a relatively narrow transition bandwidth due to .
Figure 2.
due to increasing for and ().

Figure 3.
, , and and the relation between due to for and (): (a) as , (b) as , (c) as and (d) as .
More importantly, it is shown that has a flat magnitude characteristic in both the passband and the stopband when in terms of is negatively minimized, and, then, falls in between and :
This corresponds to in Table 1 and, as shown in Figure 3b, no overshoot and no undershoot appear in the passband and the stopband. For the further evaluation of this result, in the case of (corresponding to ) and , Figure 4a,b show in terms of and the effect on , respectively. The related parameters are also indicated in Table 2 where and are the peak values of overshoot and undershoot in the passband and the stopband, respectively. It can be seen that taking yields the smallest negative value (at ) and results in and satisfying Equation (26) for a given . Consequently, using potentially leads to yielding a cut off-frequency fixing filter with zero overshoot and zero undershoot (i.e., . Especially, it is shown that the filters by have a tolerant magnitude distortion, but relatively narrower transition band than the filter by .
Figure 4.
(a) and (b) the effect of the related on due to increasing for and ().
Table 2.
Related parameters for Figure 4.
From the results so far, it has been shown that has to be chosen so that and of satisfy the condition of Equation (26) for the prescribed cut off point . To determine an optimal value of under this condition, substituting and given by Equations (21) and (23) into Equation (26) and simplifying the algebra, yields:
Hence, we can infer from Equation (27) that the empirical formula of Equation (15) given by Hermann is a wrong expression since in accordance with Equation (15) does not satisfy the condition Equation (26) (i.e., ). From the fact that choosing the optimal value of has to satisfy Equation (27), a new formula that is more accurate than Equation (15) can be defined as:
by averaging the upper and lower limit values of Equation (27). To verify the effectiveness of this formula, Figure 5 shows the accuracy comparison of Equations (15) and (28) for () and () where the “★” symbol denotes the optimal chosen by negatively minimizing under condition (27). This indicates that obtained according to Equation (28) are remarkably consistent with the optimal .
Figure 5.
Accuracy comparison of Equations (15) and (28) due to for (a) () and (b) ().
Based on results so far, Figure 6 exhibits a design procedure to directly compute the coefficients of cut off-frequency fixing filters with a desired frequency response. Table 3 and Figure 7 show the comparison between the proposed method and existing methods [15,23] for and . From Table 3, it can be said that the proposed filters apparently are a “cut off error free” and “flat magnitude” since can be very negligible and ignored. On the other hand, previous filters using empirical formula of Equation (15) are maximally flat in the passband and stopband, while there exists a filter cut off-frequency error of 2.2% to 6.6%. In addition, it appears that the iteration training method [23] leads to very slight cut off errors despite performing multiple computations to determine K, as shown in Figure 4 in Reference [23]. Consequently, these examples demonstrate that the proposed method derives accurate FIR filters with a magnitude response while allowing direct and simple computation in designing such a filter.
Figure 6.
Design procedure of cut off-frequency fixing filters.
Table 3.
Comparison of three design methods for (a) and (b) .
Figure 7.
Comparison of three design methods: () for (a) and (b) .
Figure 8, using Figure 6, shows cut off-frequency fixing filters for () and various , and the related values are given in Table 4. Table 5 also indicates coefficients of the cut off-frequency fixing filter for , where and have been obtained according to Equations (20) and (14), respectively.
Figure 8.
Cut off-frequency fixing filters with various and ().
Table 4.
Related parameters of Figure 8.
Table 5.
Coefficients of the cut off-frequency fixing filter for .
4. Conclusions
Problems with the cut off-frequency error always arise in a MAXFLAT filter design. This is due to the fact that the maximum possible number of zeros at is imposed, which leaves no degree of freedom, and, thus, no independent parameters. In this paper, a new method has been proposed providing a cut off-frequency error compensation function, available to previous closed-form polynomials, for compensating for the cut off-frequency error of MAXFLAT FIR filters. It has been shown that this error compensation function derives a closed-form Chebyshev polynomial characterizing cut off fixing FIR filters with a prescribed cut off-frequency and allows a computationally efficient and accurate formula to obtain such filters with flat magnitude response characteristics for a given order of a filter and cut off-frequency. The examples were shown to provide a complete and accurate solution for the design of such filters. Hence, a solution to the problem encountered in the previous methods is found.
Author Contributions
Conceptualization, D.C., W.C. and J.J. Methodology, D.C. Software, D.C. Validation, D.C., W.C. and I.J. Formal analysis, D.C. and J.J. Investigation, D.C., W.C. and I.J. Resources, J.J. Data curation, W.C. and I.J. Writing—original draft preparation, D.C. and J.J. Writing—review and editing, D.C. Visualization, D.C. Supervision, J.J. Project administration, J.J. Funding acquisition, J.J. All authors have read and agreed to the published version of the manuscript.
Funding
This work was funded by the Korea Institute of Energy Technology Evaluation and Planning (no. 20194030202320) and Korea Evaluation Institute of Industrial Technology (no. 20012884), which are funded by the Ministry of Trade, Industry & Energy of the Republic of Korea.
Data Availability Statement
Data is contained within the article.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Zhao, H.; Zhang, L.; Liu, J.; Zhang, C.; Cai, J.; Shen, L. Design of a Low-Order FIR Filter for a High-Frequency Square-Wave Voltage Injection Method of the PMLSM Used in Maglev Train. Electronics 2020, 9, 729. [Google Scholar] [CrossRef]
- Kalpun, D.; Butusov, D.; Ostrovskii, V.; Veligosha, A.; Gulvanskii, V. Optimization of the FIR filter structure in finite residue field algebra. Electronics 2018, 7, 372. [Google Scholar]
- Vaidyanathan, P. Efficient and multiplierless design of FIR filters with very sharp cutoff via maximally flat building blocks. IEEE Trans. Circuits Syst. 1985, 32, 236–244. [Google Scholar] [CrossRef]
- Vaidyanathan, P. Optimal design of linear phase FIR digital filters with very flat passbands and equiripple stopbands. IEEE Trans. Circuits Syst. 1985, 32, 904–917. [Google Scholar] [CrossRef]
- Samadi, S.; Nishihara, A. The world of flatness. IEEE Circuits Syst. Mag. 2007, 7, 38–44. [Google Scholar] [CrossRef]
- Ping, Z.; Chun, Z. Four-Channel Tight Wavelet Frames Design Using Bernstein Polynomial. Circuits Syst. Signal Process. 2012, 31, 1847–1861. [Google Scholar]
- Huang, X.; Jing, S.; Wang, Z.; Xu, Y.; Zheng, Y. Closed-form FIR filter design based on convolution window spectrum interpolation. IEEE Trans. Signal Process. 2015, 64, 1173–1186. [Google Scholar] [CrossRef]
- Huang, X.; Wang, Y.; Yan, Z.; Xian, H.; Liu, M. Closed-form FIR filter design with accurately controllable cut-off frequency. Circuits Syst. Signal Process. 2017, 36, 721–741. [Google Scholar] [CrossRef]
- Tseng, C.C.; Lee, S.L. Closed-form designs of digital fractional order Butterworth filters using discrete transforms. Signal Process. 2017, 137, 80–97. [Google Scholar] [CrossRef]
- Roy, S.; Chandra, A. On the Order Minimization of interpolated Bandpass Method Based Narrow Transition Band FIR Filter Design. IEEE Trans. Circuits Syst. I Reg. Pap. 2019, 66, 4287–4295. [Google Scholar] [CrossRef]
- Huang, X.; Zhang, B.; Qin, H.; An, W. Closed-form design of variable fractional-delay FIR filters with low or middle cutoff frequencies. IEEE Trans. Circuits Syst. I Reg. Pap. 2017, 65, 628–637. [Google Scholar] [CrossRef]
- Kušljević, M.D.; Tomić, J.J.; Poljak, P.D. Maximally Flat-Frequency-Response Multiple-Resonator-Based Harmonic Analysis. IEEE Trans. Instrum. Meas. 2017, 66, 3387–3398. [Google Scholar] [CrossRef]
- Yoshida, T.; Aikawa, N. Low-Delay Band-Pass Maximally Flat FIR Digital Differentiators. Circuits Syst. Signal Process. 2018, 37, 3576–3588. [Google Scholar] [CrossRef]
- Roy, S.; Chandra, A. Design of narrow transition band variable bandwidth digital filter. IET Circuits Devices Syst. 2020, 14, 750–757. [Google Scholar] [CrossRef]
- Herrmann, O. On the approximation problem in nonrecursive digital filter design. IEEE Trans. Circ. Theory 1971, 18, 411–413. [Google Scholar] [CrossRef]
- Miller, J.A. Maximally flat nonrecursive digital filters. Electron. Lett. 1972, 8, 157–158. [Google Scholar] [CrossRef]
- Rajagpoal, L.; Roy, S.C.D. Design of maximally-flat FIR filters using the Bernstein polynomial. IEEE Trans. Circuits Syst. 1987, 34, 1587–1590. [Google Scholar]
- Fahmy, M.F. Maximally flat non-recursive digital filters. Int. J. Circuit Theory Appl. 1976, 4, 311–313. [Google Scholar] [CrossRef]
- Bromba, M.U.A.; Ziegler, H. Explicit formula for filter function of maximally flat nonrecursive digital filters. Electron Lett. 1980, 16, 905–906. [Google Scholar] [CrossRef]
- Thajchayapong, P.; Puangpool, M.; Banjongjit, S. Maximally Flat FIR filters with prescribed cut-off frequency. Electron. Lett. 1980, 16, 514–515. [Google Scholar] [CrossRef]
- Roy, S.C.D. A New Chebyshev-like Low-pass Filter Approximation. Circuits Syst. Signal Process. 2010, 29, 629–636. [Google Scholar]
- Rajagpoal, L.; Roy, S.C.D. Optimal design of maximally flat FIR filters with arbitrary magnitude specifications. IEEE Trans. Acoust. Speech Signal Process. 1989, 37, 512–518. [Google Scholar] [CrossRef]
- Jeon, J.; Kim, D. Design of nonrecursive FIR filters with simultaneously MAXFLAT magnitude and prescribed cutoff frequency. Digital Signal Process. 2012, 22, 1085–1094. [Google Scholar] [CrossRef]
- Lian, Y.; Yu, Y.J. Guest Editorial: Low-Power Digital Filter Design Techniques and Their Applications. Circuits Syst Signal Process. 2010, 29, 1–5. [Google Scholar] [CrossRef][Green Version]
- Vlcek, M.; Unbehauen, R. Analytical solution of design for IIR equiripple filters. IEEE Trans. Acoust. Speech Signal Process. 1989, 37, 1518–1531. [Google Scholar] [CrossRef]
- Kaiser, J.F. Comments on maximally flat nonrecursive digital filters. Int. J. Circuit Theory Appl. 1977, 5, 103. [Google Scholar] [CrossRef]
- Jinaga, B.C.; Roy, S.C.D. Explicit formulas for the Weighting coefficients of maximally flat nonrecursive digital filters. Proc. IEEE. 1984, 72, 1092. [Google Scholar] [CrossRef]
- Jinaga, B.C.; Roy, S.C.D. Explicit formula for the coefficients of maximally flat nonrecursive digital filter transfer function expressed in powers of cos w. Proc. IEEE. 1985, 73, 1135–1136. [Google Scholar] [CrossRef]
- Kumar, B.; Kumar, A. Efficient linear-phase FIR, maximally flat error approximations for the amplitude response |1/ωr|, r = 1, 2, 3, …, and a versatile realization. Circuits Syst. Signal Process. 2000, 19, 567–580. [Google Scholar] [CrossRef]
- Vesma, J.; Saramaki, T. Polynomial-Based Interpolation Filters—Part I: Filter Synthesis. Circuits Syst. Signal Process. 2007, 26, 115–146. [Google Scholar] [CrossRef]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2021 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).