This note on A and C Weighting via bilinear transform is closely related to “ON LEVEL MEASURMENTS VIA ITU-T P.56 AND WEIGHTING” (cf. Ref. [1]) and elaborates on the standard definitions of weighting curves A and C (defined in the analog domain) for the purpose of *unbiased* digital filtering when taking advantage of bilinear transformation (cf. Ref. [2]).

A common approach to filtering signals using A and C-weighting filters is to employ the bilinear transformation directly (cf. Ref. [3]). It is also known that such an unqualified approach leads to discrepancies between versions of A and C-weighting and the ones obtained via the bilinear transformation. These descrepancies are caused by the non-linearity of the transformation itself. Figure 1 illustrates the mapping between the frequency variables ω and Ω resulting from the bilinear transformation (5).

It should be noted that the spectral approach (cf. Ref.[4]) does not lead to any discrepancies of similar nature due to the fact that it does not synthesize a digital IIR filter from its analog prototype using the bilinear transformation. Instead, it uses the DFT, and, specifically, the FFT-based approach, which allows for a direct employment of the original definition of the weighting curves. The only limitation of that approach is associated with the size of the DFT when the input file is large.

To overcome that limitation, a modified approach would require the input vector be segmented into smaller pieces. This in turn would require an application of careful concatenation of the output segments to preserve their initial conditions (thus to avoid *discontinuities* in the concatenated signal). The approach discussed here is tied to the original approach, i.e., the one via synthesis of the IIR digital filter through the bilinear transformation, with one addition though: in order to minimize the nonlinear effect of the bilinear transformation, the input data needs to be upsampled and then, after applying the weighting filter, decimated. With that approach, the non-linearity of the bilinear transformation can be adequately mitigated (albeit never removed completely).

The original definition of the A-weighting and C-weighting (as well other types of weighting) is given by Ref. [5].

The transfer function (in the s-domain) of the A-weighting filter is defined as follows:

where:

*s*_{1 }= *2 πf _{1}*;

*f*= 20.598997; (2a)

_{1}*s*_{2 }= *2 πf _{2}*;

*f*= 107.65265; (2b)

_{2}*s*_{3 }= *2 πf _{3}*;

*f*= 737.86223; (2c)

_{3}*s*_{4 }= *2 πf _{4}*;

*f*= 12194.217; (2d)

_{4}*K _{A}* = (

*2 πf*)

_{4}^{2 }10

^{A1000/20}; A1000 = 1.9997; (2e)

Based on (1) , the amplitude characteristic A_{A}(f) of the A-weighting filter is as follows:

The transfer function (in the s-domain) of the C-weighting filter is defined as follows:

where

*s*_{1 }= *2 πf _{1}*;

*f*= 20.598997; (4a)

_{1}*s*_{4 }= *2 πf _{4}*;

*f*= 12194.217; (4b)

_{4}*K _{C}* = (

*2 πf*)

_{4}^{2 }10

^{C1000/20};

*C*1000 = 0.0619; (4c)

Based on (3), the amplitude characteristic A_{C}(f) of the C-weighting filter is as follows:

A straightforward and common method of generating the b-type (MA part) and a-type (AR part) coefficients of the IIR digital filters representing the A and C-weighting is via applying the bilinear transformation linking z-domain to s-domain. The transformation is given below (Ref. [2]):

where T = Fs^{-1}; Fs is the sampling frequency; z is complex variable, as used in the Z-transform.

By substituting variable s in (1) and in (3) with (5) we arrive at the IIR digital filters (i.e. represented in the z-domain) whose prototypes have originally been in the s-domain. Since the bilinear transformation (5) does not link the analog frequency domain s to the digital frequency domain z in a linear fashion (the illustration of that is given in Figure 1), then the shapes of the A-weighting amplitude characteristics and the C-weighting characteristics are skewed, according to the formula (6a) given below:

or, equivalently

where ω is the angular analog frequency (i.e., *ω* = *2 πf*) and *Ω* is the corresponding digital frequency. This nonlinear skewing effect is called a frequency compression or frequency warping, and it is due to the nonlinearity of the arctangent function (cf. Ref. [2]).

We notice though that for frequencies in the neighborhood of zero, the linear approximation can be applied. Therefore, in order to overcome, or rather mitigate, the frequency warping effect, before filtering the signal using the A- weighting filter or the C-weighting filter via the IIR filters generated based on the analog prototypes, it is recommended first to upsample the signal, then filter it and then downsample it by the same factor. From the practical viewpoint, upsampling and downsampling by the factor of 2 is adequate in the most cases. If the signal energy is concentrated in the upper end of the frequency scale, particularly in the close vicinity of the Nyquist frequency Fs/2, the upsampling and downsampling by a greater factor (say, 4) will further reduce the warping effect. Closer examination of Figure 1 as well as Equations 6a or 6b leads to more definite estimation of the adequate resampling factor for the given signal.

Failing complying with the above outlined resampling procedures, discrepancies in estimating signal levels using dBA and dBC units will occur. Note that there is no closed-form formula allowing to universally estimate the discrepancy because this discrepancy is a function of the signal spectrum. It is possible that in some cases this discrepancy is quite tangible. In typical cases though this discrepancy usually does not exceed a couple of decibels and often is smaller than that. Illustrations of the warping effect for the A-weighting and the C-weighting are shown in Figures 2 and 3, respectively. It is worth noting that for the most cases when the signal spectrum extends from the low frequencies through the upper frequencies (as opposed to the cases where it is concentrated mainly at the higher frequencies), the warping effect impact on the level estimations is greater for the A-weighting than for the C-weighting, for the same sampling frequencies.VOCAL Technologies practices include standard compliance with A and C weighting both in analog as well as digital domains. Contact us to discuss your application with our engineering staff.

### More Information

### References

- ON LEVEL MEASUREMENTS VIA ITU-T P.56 AND WEIGHTING
- Digital Signal Processing, Principles, Algorithms, and Applications, 2
^{nd}Edition, J.G. Proakis and D.G. Manolakis, Macmillan Publishing, 1992. - Matlab Central, On generation of normalized A-weighting and C-weighting, 1997 )
- A-weighting Filter with Matlab Implementation, Hristo Zhivomirov, Matlab Central, 2014.
- International Standard IEC 61672;2003.