Next Article in Journal
Integration of RSM and Machine Learning for Accurate Prediction of Surface Roughness in Laser Processing
Previous Article in Journal
Vulnerability Assessment Framework for Physical Protection Systems Integrating Complex Networks and Fuzzy Petri Nets
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Estimation of Dynamic Error Parameters in a Measurement Chain Based on the Spectrum of Input Quantities

Department of Measurement Science, Electronics, and Control, Silesian University of Technology, ul. Akademicka 10, 44-100 Gliwice, Poland
*
Author to whom correspondence should be addressed.
Appl. Sci. 2025, 15(13), 7063; https://doi.org/10.3390/app15137063
Submission received: 9 June 2025 / Revised: 20 June 2025 / Accepted: 22 June 2025 / Published: 23 June 2025

Abstract

Featured Application

Estimation of dynamic error signal parameters for a measurement chain containing a digital signal processing algorithm.

Abstract

This paper presents a method for estimating the parameters of the dynamic error signal in a measurement chain. The method is based on knowledge of the transmittance of subsequent elements in the chain and analysis of the spectrum of the processed signal. The proposed approach allows for determining the parts of uncertainty budget of the measurement chain related with dynamic errors, considering the currently processed signal and the calculation of the expanded uncertainty associated with the dynamic error signal. The paper describes the proposed error model, the algorithm for estimating the error signal parameters, and detail measurement and simulation experiments conducted to verify the effectiveness of the proposed method.

1. Introduction

The measurement channels of modern measurement and control equipment typically include components that perform digital processing of measurement signals [1,2,3,4]. This approach enables the use of a wide range of signal processing algorithms to extract useful information [5,6,7], apply multiplicative algorithms for power and energy measurements [8,9], analysis of power grids fails and short circuits [10,11], or perform static and dynamic reproduction of processed quantities [12,13,14,15]. Although the most important operations related to signal processing are performed digitally, the physical quantity being measured is continuous in time and must first be converted into an electrical voltage. This voltage—after being processed by the analog part of the measurement chain—is then converted into digital form by an analog-to-digital (A/D) converter. This process is shown in Figure 1.
The analysis of the inaccuracy in determining the values of the output quantities of the measurement chain must therefore include a description of the analog processing, which ultimately allows for estimating the uncertainty budget of the input quantities of the A/D converter [14,17]. The next stage of the analysis is to determine the impact of the A/D conversion process on the error signals present in the output quantities of the A/D converter. The final stage is to determine the metrological properties of the digital processing algorithm (D/D). This approach has been successfully used, among others, in [14,16,18,19,20].
According to the proposal presented in the literature [14,19,21] for dividing error signals, it can be observed that the parameters of some of the above-mentioned signals are closely correlated with the waveform of the signal representing the measured physical quantity. As shown in [13,16,18,19,22,23], the dynamic error signals resulting from the imperfect transmittance of subsequent fragments of the measurement chain are closely related to the spectrum of the signal processed by the chain. Imperfect transmittance is understood as one that deviates from that assumed by the designer of the measurement chain [23]. In practice, this means that the development of the uncertainty budget of the output quantities of the measurement chain is not possible without knowing or estimating the spectrum of the input quantity processed by it. Currently, no method has been proposed in the literature that allows estimation of the parameters of the discussed error signals without knowledge of the properties of the processed signal.
To address the above-mentioned problems, this article proposes a method for estimating the parameters of the dynamic error signal of the input quantities of the digital part of the measurement chain based on the spectrum of these quantities and the error model of the analog part of the chain. The presented analysis includes various cases in which typical problems of the method are discussed and its effectiveness is demonstrated. In addition to simulation results, the article presents an example of the application of the proposed method to an exemplary measurement chain and provides the results of a measurement experiment verifying the effectiveness of the method. The article is a continuation of the considerations contained in [16,18].
The paper is divided into six sections. Section 1 discusses the current state of knowledge on the subject and presents the general concept of the work. Section 2 is devoted to the discussion of the mathematical model of the error signal, where the most important dependencies and derivations are presented. In Section 3, a proposed method for estimating the error signal parameters, discussed in Section 2, is presented. Section 4 and Section 5 are devoted to simulation and measurement verification of the proposed method, and examples of its application are indicated. The final Section 6 summarizes the most important properties of the method and presents the main conclusions from the conducted research.

2. Dynamic Error Model

Dynamic error signals are signals whose realized values change for subsequent samples of the algorithm’s input quantities within the analyzed measurement window, and the nature of these changes is deterministic. An example of such an error signal is a signal resulting from the introduction of a phase shift in the output quantities of the analog part of the measurement chain. Let us assume that a fragment of the measurement chain converts a time-varying physical quantity s ( t ) into a voltage signal representing it, y ( t ) , in accordance with the diagram in Figure 2.
For the presented fragment of the measurement chain, a certain ideal transmittance G ˙ y ( j ω ) and a processing function f ˙ y ( x ) can be assumed, which result from the measurement task being performed. Unfortunately, the actual properties of this fragment and the quantities G ˜ y ( j ω ) and f ˜ y ( x ) describing them may differ from the ideal ones. Taking these assumptions into account, the ideal y ˙ ( t ) and the actual y ˜ ( t ) outputs of the analog part can be described by the following equations:
y ˙ t = f ˙ y j = 0 K ˙ y , j E s , j sin ω s , j t + φ s , j + φ ˙ y , j ,
y ˜ t = f ˜ y j = 0 K ˜ y , j E s , j sin ω s , j t + φ s , j + φ ˜ y , j ,
hence, the error signal e y , d e t ( t ) introduced by this object can be described by Equation [13,19]:
e y , d e t t = y ˜ t y ˙ t ,
where ω s , j is the angular frequency, E s , j is the amplitude, and φ s , j is the phase of the jth harmonic of signal s ( t ) , while the values of the introduced gain K y , j and phase shift φ y , j are [24], respectively:
K y , j = G y j ω s , j 2 + G y j ω s , j 2 ,
φ y , j = arctan G y j ω s , j G y j ω s , j .
Assuming that the transfer function G y ( j ω ) of the object is linear and time-invariant and that the processing function f y ( x ) of the object is linear and additive, the object can be described solely by the transfer function G y ( j ω ) , whose static gain equals the static sensitivity of the analyzed object [25]. Under these assumptions, and in accordance with the division proposed in [19,21], the error signal component e y , d e t ( t ) for the harmonic ω s , 0 = 0   rad constitutes the static error signal:
e y , s i = K ˜ y , 0 K ˙ y , 0 E s , 0 ,
while the remaining harmonics contribute to the dynamic error signal:
e y , d t = j = 1 K ˜ y , j E s , j sin ω s , j t + φ s , j + φ ˜ y , j j = 1 K ˙ y , j E s , j sin ω s , j t + φ s , j + φ ˙ y , j .
As shown in [16,18], the most important source of the dynamic error signal in this case is the introduction of a phase shift, φ ˜ y , j , by the analyzed fragment of the measurement chain, which differs from the expected value, φ ˙ y , j . An additional source of the signal in question may also be the introduction by the object of a gain K ˜ y , j other than the desired one K ˙ y , j . It can be observed that the analyzed fragment of the measurement chain acts as a filter with parameters determined by its physical properties, while ideally the transmittance of this object should have the following form:
G ˙ y ( j ω ) = s y ,
where s y is the sensitivity of the analyzed object. According to the adopted assumption, the ideal gain and phase characteristics are given by the following:
K ˙ y ( ω ) = s y ,
φ ˙ y ( ω ) = 0   rad .
Assuming the measurement process is performed multiple times, the variance of the subsequent harmonics of the dynamic error signal [24] can be determined as follows:
σ y , d , j 2 = 1 2 E y , e , j 2 ,
and the expanded uncertainty can be calculated as follows:
U y , d , j = 1 2 c d E y , e , j ,
where c d is the expansion factor for the sine function distribution at the assumed confidence level γ = 1 α [17,26].
If the resulting dynamic error signal e y , d ( t ) consists of many harmonics with different angular frequencies, the resultant variance of this signal is given by Equation [24]:
σ y , d 2 = j = 1 σ y , d , j 2 = 1 2 j = 1 E y , e , j 2 .
However, determining the expanded uncertainty for a given confidence level in this case is complex and can be achieved using methods described in [27,28,29,30,31,32,33,34]. If the error signal e y , d ( t ) contains harmonics with identical angular frequencies, the resultant values of these harmonics should be determined according to the method presented in [16,24,34].
Assuming that the signal y ( t ) is the input quantity of the A/D converter, this converter transfers the dynamic error signal e y , d ( t ) present in this signal to the output. Additionally, the converter introduces its own errors [14,35,36] to the output quantity x ( i ) . These error signals result from the finite resolution of the converter, imperfections of the sample-and-hold (S/H) system, inhomogeneity of the internal structure of the standard, or imperfections of the reference voltage source [35,37]. Throughout the remainder of the paper, it is assumed that the metrological properties of the S/H system are included in the error model of the analog part of the measurement chain. Hence, the value of the converter output quantity, expressed in the unit of the input quantity y ( t ) , is given by Equation [14]:
u ˘ A C x = q x q + 0.5 ,
where q = b a N q is the value of a single quantum of the transducer that processes voltage in the range x [ a ;   b ] , where a , b R , with resolution N q N .
Under the adopted assumptions, in the ideal case, the output quantity x ( i ) of the A/D converter is described by the following equation:
x ˙ i = y ˙ t i = y ˙ i T s ,
where T s is sampling period, while in the real case, this quantity is described by the following equation:
x ˜ i = x ˙ i + e x , Σ i .
The resulting error signal e x , Σ ( i ) at the output of the A/D converter can be described as follows:
e x , Σ i e y , Σ t i + e x , q i ,
where e x , q ( i ) is the error signal due to the rounding operation in Equation (14). The dynamic error signal e y ( t ) is then propagated to the A/D converter output according to the following equation:
e x , d i e y , d t i ,
where the variance of this signal is identical at the input and output of the A/D converter [16,19]:
σ x , d 2 i σ y , d 2 .

3. Dynamic Error Parameter Estimation

According to the diagram shown in Figure 1, subsequent samples of the output quantities x ( i ) of the A/D converter are processed by the D/D processing algorithm used in the measurement chain. For each run of the algorithm, N subsequent samples of the signal are collected, based on which the values of the output quantities of the measurement chain are determined. To estimate the parameters of the dynamic error signal in quantity x ( i ) , a spectral analysis can be performed on the current vector of input samples. This analysis can be performed using the discrete Fourier transform (DFT) algorithm.
Assuming that the samples x ( i ) are real numbers, the output quantities of the DFT algorithm are given by Equation [3,24]:
X k = n = 0 N 1 x ( n ) exp j 2 π k n N ,
while the amplitude E k , phase φ k , and angular frequency ω k of the output quantities X ( k ) are determined as follows:
E k = 2 N X k ,
φ k = arg X k ,
ω k = k N 2 π f s ,
for k     [ 1 ;   1 2 N 1 ] , where f s is the sampling rate.
By analyzing Equation (7) together with Equation (18), a single harmonic component of the dynamic error signal of quantity x ( i ) can be described as follows:
e x , d , k i = x ˜ k i x ˙ k i ,
where the estimated realization x ˜ k ( i ) can be approximated from the signal spectrum as follows:
x ˜ k i = E k sin ω k t i + φ k .
In the absence of dynamic error, the ideal harmonic x ˙ k ( i ) , without additional phase shift or attenuation, is given by the following equation:
x ˙ k i = E k K ˙ y ω k K ˜ y ω k sin ω k t i + φ k φ ˜ y ω k + φ ˙ y ω k .
Based on Equations (7), (11), (19), and (24), the estimated variance of the kth harmonic component of the dynamic error signal e x , d ( i ) can be described as follows:
σ x , d , k 2 = 1 2 E k cos φ k E k K ˙ y ω k K ˜ y ω k cos φ k φ ˜ y ω k + φ ˙ y ω k 2 + 1 2 E k sin φ k E k K ˙ y ω k K ˜ y ω k sin φ k φ ˜ y ω k + φ ˙ y ω k 2 ,
and the resultant variance of the dynamic error signal is described by the following equation:
σ x , d 2 = k = 1 1 2 N 1 σ x , d , k 2 .
The method presented above requires knowledge of the dependence of the resultant phase shift φ ˜ y ( ω ) and gain K ˜ ( ω ) introduced by the analog part of the measurement chain. The estimation of these parameters, based on measurement experiments and data from the catalog notes of the components used, is described in [16]. If, for the measurement chain part under discussion, the gain value for frequencies in the range [ 0 ;   1 2 f s ] closely matches the expected value (i.e., when K ˜ ( ω ) K ˙ ( ω ) ) and the ideal phase shift is zero (i.e., when φ ˙ ( ω ) = 0   rad ), then (27) simplifies to the following form:
σ x , d , k 2 = 1 2 E k cos φ k E k cos φ k φ ˜ y ω k 2 + 1 2 E k sin φ k E k sin φ k φ ˜ y ω k 2 .
By assuming that the difference between the actual φ ˜ y ( ω ) and the ideal φ ˙ y ( ω ) phase shift value is small (i.e., when | φ ˜ y ( ω ) φ ˜ y ( ω ) | < 0.25   rad ), this equation can be simplified even further:
σ x , d , k 2 = 1 2 E k cos φ ˜ ω k E k 2 + 1 2 E k sin φ ˜ y ω k 2 .
The simplification contained in Equation (30) results from the properties of the sine and cosine functions, where for small angle measures the sine function is close to a linear function, while the cosine function assumes similar values in the indicated range of arguments. Throughout the remainder of the paper, Equation (27), without simplifications, is used. During the discussion of conclusions, selected results obtained using Equation (30) are also presented.
The analytically implemented method presented so far allows for a very accurate estimation of the dynamic error signal parameters. However, its actual implementation may encounter several problems typical when using the DFT algorithm. The most important problems in the analyzed case are aliasing, spectral leakage, and noise in the processed quantity x ( i ) . Aliasing can be reduced by using appropriate filters [38]. In the case of spectral leakage, an appropriate measurement window [39] can be used, while in the case of noise, it is proposed to use a method similar to the one described in [40,41], used to reduce noise in the measurement signal using the discrete wavelet transform (DWT) algorithm.
The method proposed for handling noise in the measurement signal involves rejecting harmonics with amplitude values E k lower than a threshold determined by the following equation [41]:
λ = med E 0 , E 1 , , E N 1 2 ln 1 2 N 0.6745 .
Thus, in Equation (28), the corrected amplitude values E k are used, defined as follows:
E k = E k if E k > λ 0 otherwise .
The application of the measurement window consists of feeding the input of the DFT algorithm, described by Equation (20), with the modified signal x ( i ) , described as follows:
x i = x i w i 1 N n = 0 N 1 w 2 n ,
where w ( n ) is the applied window function [42]. The term in the denominator normalizes the window energy to preserve the original energy of the processed signal [24]. This normalization is necessary because the estimated energy of the error signal depends on the estimated energy of the processed signal, as shown in Equation (27).

4. Simulation Verification of the Method

First, the effectiveness of the proposed method was verified by simulation. For this purpose, a series of Monte Carlo experiments [33,43] were conducted, the results of which are discussed later in the article. Each experiment involved computing the variance of the dynamic error signal 100,000 times, for a vector x ( i ) consisting of N samples taken at time intervals T s = 1 f s . The initial phase of the processed signal s ( t ) was randomly selected for each iteration. The actual variance σ s 2 of the dynamic error signal was determined based on Equation (13), taking into account the dependencies described by Equations (7) and (19), while the estimated variance σ e 2 was determined based on Equation (28). For the obtained results, the relative error in estimating the variance was determined:
δ = σ e 2 σ s 2 σ s 2 · 100 ,
along with statistical parameters of this value: the mean δ ¯ , standard deviation σ δ , and expanded uncertainty U δ at a 95% confidence level [17]. The effectiveness of the proposed method for the experimental conditions was assessed based on these parameters.
During the experiments, the measurement chain converting the physical quantity s ( t ) into its voltage representation y ( t ) and then into its discrete form x ( i ) , which is the input for the D/D processing algorithm, was analyzed. The subsequent N values of x ( i ) were taken with a sampling frequency f s = 48   kHz . The fragment converting s ( t ) to y ( t ) was characterized by the transfer function G y ( j ω ) , assuming the following:
G ˙ y j ω = 1 ,
G ˜ y j ω = 1 1 + j ω 2 π f c = 1 ω 2 4 π 2 f c 2 + 1 j ω 2 π f c ω 2 4 π 2 f c 2 + 1 ,
where f c = 320   kHz is the cutoff frequency of the analog processing part (A/A). Depending on the experimental conditions, the A/D converter introduced a quantization error to x ( i ) , and the measured quantity s ( t ) was disturbed by a white noise signal with constant power spectral density and normally distributed values [44,45].
The experiments were performed using GNU Octave version 9.4.0 [46]. Equation (20) was implemented using the program’s built-in FFT function. The source code, which allows reproducing all experiments, is publicly available in the repository [47].

4.1. The Case of Spectrum Leakage

The first problem considered is the case of spectral leakage [39]. This situation occurs in the case of noncoherent sampling, i.e., when f k n N f s where n N . While the estimated energy value for the analyzed signal does not change, the output quantities X ( k ) of the DFT algorithm show additional harmonics with frequencies f k close to the actual harmonic frequency of the signal s ( t ) . This means that the estimated dynamic error signal e x , d ( i ) contains more harmonics than actually present.
Because, according to Equation (27), the estimated variance of the kth harmonic depends on the introduced phase shift, which in turn depends on the harmonic’s frequency, this situation is unfavorable. If most of the real energy of the harmonic of s ( t ) leaks to a lower frequency harmonic, the variance of the dynamic error signal associated with that harmonic will be underestimated. Otherwise, due to a larger value of the phase shift parameter φ ˜ y ( ω ) , this variance will be overestimated.
To verify the influence of this phenomenon on the relative error in estimating the variance of the dynamic error signal e x , d ( i ) described by Equation (34), a monoharmonic signal s ( t ) , defined by the equation, was applied to the input of the measurement channel described in the Introduction section of this paper:
s t = sin ω o t + φ o ,
where ω o = 2 π f o is the angular frequency of the signal s ( t ) and φ o     [ 0 ;   ω o ] is the initial phase of this waveform, random for each iteration of the experiment. The quantization error introduced by the A/D converter was not considered in the experiment.
The experiment was performed for the following parameter combinations: f n { 3 , 9 , , 21 } kHz , N { 32 , 64 , 128 } , and for the signal frequency s ( t ) equal to the following:
f o = f n + f s N f m u l ,
where the multiplier f m u l { 0.9 , 0.8 , , 0 , , 0.8 , 0.9 } . Thus, for each frequency, different cases of spectral leakage were tested, caused by failure to meet the coherent sampling condition f o n N f s for n N , as well as the case of coherent sampling where f m u l = 0 . The experiment was performed for all combinations of these parameter values. Selected results are presented in Figure 3 and summarized in Table 1. The experiment can be reproduced by running the script in the file case_1_sine.m located in the repository [47].
In analyzing the presented results, it can be seen that the phenomenon of spectrum leakage significantly affects the relative error in estimating the variance of the dynamic error signal and its spread. When coherent sampling conditions are maintained, the value of this error is close to zero. This phenomenon is particularly noticeable when the number of samples of the analyzed signal is low, where the frequency resolution of the DFT algorithm is limited, and for low frequencies of the signal processed by the measurement chain. As the frequency of the processed signal increases and the number of samples increases, the effect of spectrum leakage becomes less noticeable, and consequently its impact on the obtained results is minimal.
For low frequencies of the processed signal, the variance of the dynamic error signal is small, and the ratio of the frequency difference f k + 1 f k f k between subsequent results of the DFT algorithm is much higher than in the case of higher values of this quantity. Because this difference directly influences the estimated phase shift and consequently the estimated variance, these differences are significant in this context. However, it should be noted that the variance of the dynamic error signal is very small in this case, which, relative to the overall uncertainty budget, may have a negligible impact on the resultant variance and the expanded uncertainty of the analyzed quantity. This phenomenon is discussed in more detail later in the paper.
As mentioned in the Introduction, the phenomenon of spectral leakage can be mitigated by using an appropriate measurement window. The experiment discussed so far was repeated using the following measurement windows: “Blackman”, “Hamming”, “Bartlett”, “Hann”, and “Flat Top” [42], in accordance with Equation (33). The experiment was conducted under conditions identical to those in the previous case, with the only difference being the use of a constant input quantity vector length of N = 64 . Selected experimental results are presented in Table 2 and Figure 4. The experiment can be reproduced by running the script in the file case_2_window.m, located in the repository [47].
Based on the presented results, it can be concluded that when the conditions of coherent sampling are met, the inaccuracy in estimating the variance of the dynamic error signal is greater than in the case without a measurement window. The measurement window used under coherent sampling causes the phenomenon of spectrum blurring. In the case of non-coherent sampling, the value of the discussed parameter is significantly smaller. It should be noted that, in practical measurements, achieving full sampling coherence is not possible. The use of a measurement window is therefore justified, despite the mentioned negative effects. The introduced error is small, while the inaccuracy in non-coherent sampling is significantly reduced.
Of all the measurement windows used, the “Flat Top” window showed the lowest effectiveness. The “Bartlett”, “Hann”, “Blackman”, and “Hamming” windows showed similar effectiveness. It can therefore be concluded that, for the analyzed case, dynamics are more important than window resolution. By analyzing the statistical parameters of the obtained results, it can also be observed that the “Blackman” and “Flat Top” windows show almost zero dispersion in the relative error of estimating the variance. Because the “Hamming” measurement window showed the greatest effectiveness for the analyzed case, it is used throughout the remainder of this paper.
Given the results of the previous experiment, where 95% of the relative error values in estimating the variance for N = 64 were within the range [ 0 ;   39 ] %, while in the experiment using a measurement window this range narrowed to [ 0.7 ;   2.8 ] % for the “Hamming” window, it is clear that the use of a measurement window significantly improves the accuracy of the obtained results. It should be emphasized, however, that in the first experiment, the overestimated variance values concerned cases where the variance was very small compared to other more accurately estimated cases, which may be insignificant in the background of other error signals. Therefore, the advantages and disadvantages of using a measurement window should be considered in terms of computational complexity and potential impact on the accuracy of the obtained results. This topic is further discussed later in the paper.

4.2. The Case of Random Error Signals

According to the classification proposed in [16,19,48], the group of random error signals includes signals whose realization values vary within a single measurement window, and this variation is nondeterministic. The parameters of such signals can be described probabilistically by their variance and the probability density function representing the likelihood of obtaining a particular realization. An example of this type of signal is the quantization error, as defined by Equation (14). Another example is the presence of white noise in the measurement signal.
To assess the influence of random error signals on the effectiveness of the proposed method, an experiment was carried out in which the signal s ( t ) was applied to the input of the measurement chain in the following form:
s t = sin ω o t + φ o + e s , r t ,
where e s , r ( t ) represents white noise with zero mean, constant power spectral density σ s , r 2 , and normally distributed realizations [44,45]. The experiment was conducted for a given signal-to-noise power ratio, defined for the experimental conditions by the following equation:
S N R = 10 log 10 P s , o σ s , r 2 = 10 log 10 0.5 σ s , r 2 ,
where P s , o = σ s , o 2 = 0.5   V 2 results from the unit amplitude and zero mean of the fundamental harmonic of the signal s ( t ) . The quantization error introduced by the A/D converter was not considered in this experiment.
The experiment was performed using the following parameter combinations: σ s , r 2 [ 0.001 ;   0.25 ]   V 2 , f n { 3 , 9 , , 21 } kHz , N { 32 , 64 , 128 } , and a signal frequency s ( t ) defined by Equation (38), where the multiplier f m u l { 0.9 , 0.8 , , 0 , , 0.8 , 0.9 } . Selected results are presented in Table 3 and Figure 5. The experiment can be reproduced by running the script in the file case_3_noise.m located in the repository [47].
The results of the experiment indicate that using the method described by Equation (32) produces a relative error in estimating the variance of the dynamic error signal that is close to zero and reduces the variability of the estimate. It can also be observed that the method does not cause negative effects in cases where no noise is present. Although the expected value of the parameter δ remains close to zero regardless of the ratio of useful signal power to noise, its dispersion increases as this ratio decreases. In practice, this means that for highly noisy signals, the uncertainty of estimating the variance value becomes significantly larger. It should be noted that the discussed experiment was conducted for S N R values much lower than those typically found in measurement chains [16,17].

4.3. Case of the Error Model Parameter Inaccuracy

Since the presented analysis method requires knowledge of the transfer function G y ( j ω ) of the subsequent elements of the measurement chain, its effectiveness depends on the accuracy of the estimation of this transmittance. Assuming that K ^ y ( ω ) and φ ^ y ( ω ) are estimated values of the actual parameters K ˜ y ( ω ) and φ ˜ y ( ω ) , we can write
σ ˙ x , d , k 2 = 1 2 E k cos φ k E k K ˙ y ω k K ˜ y ω k cos φ k φ ˜ y ω k + φ ˙ y ω k 2 + 1 2 E k sin φ k E k K ˙ y ω k K ˜ y ω k sin φ k φ ˜ y ω k + φ ˙ y ω k 2 ,
σ ˜ x , d , k 2 = 1 2 E k cos φ k E k K ˙ y ω k K ^ y ω k cos φ k φ ^ y ω k + φ ˙ y ω k 2 + 1 2 E k sin φ k E k K ˙ y ω k K ^ y ω k sin φ k φ ^ y ω k + φ ˙ y ω k 2 ,
where σ ˙ x , d , k 2 is the correctly estimated value of the variance of the k-th harmonic of the dynamic error signal (in the case of knowing the actual transfer function G ˜ y ( j ω ) ), while σ ˜ x , d , k 2 is the variance value estimated on the basis of inaccurately determined values of the parameters K ^ y ( ω ) and φ ^ y ( ω ) .
For the discussed case the relative error in estimating the variance value of the kth harmonic of the dynamic error signal with pulsation ω k , presented earlier in Equation (34), takes the form
δ k = σ ˜ x , d , k 2 σ ˙ x , d , k 2 σ ˙ x , d , k 2 · 100 ,
so after substituting Equations (41) and () into Equation (43), one can write
δ k = K ˙ y ω k K ^ y ω k 2 K ˙ y ω k K ˜ y ω k 2 + 2 K ˙ y ω k K ˜ y ω k cos φ ˜ y ω k φ ˙ y ω k K ˙ y ω k K ^ y ω k cos φ ^ y ω k φ ˙ y ω k 1 + K ˙ y ω k K ˜ y ω k 2 2 K ˙ y ω k K ˜ y ω k cos φ ˜ y ω k φ ˙ y ω k .
For the rest of the experiments described in the paper, it is assumed that the parameters of the measurement chain error model were determined correctly, therefore σ ˙ x , d , k 2 = σ ˜ x , d , k 2 holds. Analyzing the content of Equation (44), it can be noticed that the inaccuracy of the gain parameter estimation has a greater impact on the effectiveness of the proposed analysis method than the inaccuracy of the phase shift parameter estimation. Analyzing the measurement experiment described in work [16] it can be noticed, however, that in the case of the gain value, determining the dependence of this quantity on the pulsation of the signal processed by the measurement chain is much easier than in the case of determining this dependence for the phase shift.

4.4. Comprehensive Verification of the Effectiveness of the Method

The previous experiments allowed for the evaluation of the effectiveness of the proposed method in various conditions. The final measurement experiment presents a complex case in which the analyzed measurement chain processes a polyharmonic input signal s ( t ) given by the following equation:
s t = e s , r t + E s , 0 + k = 1 K 1 E s , k sin ω s , k t + φ s , k ,
where for each iteration of the experiment, the parameters of this waveform were randomly selected. The value of the constant component was E s , 0 U [ 1 ;   1 ] V ; the amplitudes of the subsequent harmonics were E s , k U [ 0.25 ;   1 ] V ; the angular frequencies were ω s , k U [ 2 π 3000 ;   2 π 21000 ] rad ; the phase values were φ s , k U [ 0 ;   2 π ] rad ; and the variance of the white noise signal was σ s , r 2 U [ 0.001 ;   0.1 ]   V 2 (therefore, according to Equation (40), S N R     [ 7 ;   27 ] dB). Symbol U [ a ;   b ] denotes uniform distribution [44].
During the experiment, the contribution of the A/D converter to the uncertainty budget of the quantity x ( i ) was additionally taken into account. Therefore, for the discussed case, in accordance with (14), this quantity is described by the following equation:
x i = q 1 q y t i + 0.5 ,
where the quantity y ( t ) , which depends on s ( t ) described by Equation (45), is defined by Equations (1) and (2). The value of the quantum is q = 2.34   ·   10 2 .
The experiment was carried out for a variable length N of the input quantity sample vector x ( i ) and for a varying number K of harmonic components of the signal s ( t ) . During the experiment, the method used the “Hamming” window and the algorithm for reducing the impact of the noise signal on the effectiveness of the proposed method, as described by Equation (32). Due to the large variability in the parameters of the dynamic error signal, Equation (27) was used to estimate its variance, without any simplifications. Selected results from the experiment are shown in Figure 6. The experiment can be reproduced by running the script in the file case_4_mix.m located in the repository [47].
By analyzing the presented histograms, it can be observed that the expected value of the relative error in estimating the variance of the dynamic error signal is close to zero, while the spread of this value is noticeable. However, it should be noted that a significant portion of the parameter combinations of the processed signal s ( t ) exhibited very unfavorable conditions for the applied algorithm. These cases include the presence of several signals with very similar frequencies, which intensified the phenomenon of spectral leakage, the presence of multiple low-frequency signals, and a large share of noise compared to the useful part of the processed signal. By examining the results, it can be seen that the effectiveness of the proposed method increases as the length of the input quantity vector increases, which directly improves the frequency resolution of the DFT algorithm. However, within the context of this research, the proposed method can be considered suitable for measurement practice [17], provided it is applied using parameters that are appropriate for the characteristics of the error signal, the variance of which is being estimated. It should be further emphasized that the ultimate goal of this method is to estimate the uncertainty value, which is proportional to the square root of the variance. Therefore, the discrepancy in estimating this parameter will be considerably smaller.
Based on the results shown in Figure 6, it can be concluded that the accuracy of estimating the variance of the dynamic error signal under the experimental conditions depends mainly on the frequency domain resolution of the DFT algorithm. For the same value of N, both the spread and the expected value of the analyzed parameter do not change significantly with an increase in the number of harmonics of the processed signal.

5. Measurement Verification of the Effectiveness of the Proposed Method

The measurement verification of the effectiveness of the discussed method was performed on the measurement chain, the error model and metrological properties of which were described in [16]. A schematic diagram is shown in Figure 7. This measurement chain processes the time-varying voltage s ( t )   [ 0 ;   1 ] V , which is first conditioned by the A/A processing system into the signal y ( t ) and then converted into the form x ( i ) by the A/D converter. The analyzed quantity x ( i ) is defined as follows:
x ˙ i = s s , x s ˙ i T s = s ˙ i T s ,
x ˜ i = s ˙ i T p + e x , Σ i ,
where T s is the sampling period corresponding to the sampling frequency f s = 48   kHz , and e x , Σ ( i ) is the resultant error signal of magnitude x ( i ) , which consists of the following:
  • e x , r ( i ) —resultant random error signal with constant power spectral density, zero expected value, normally distributed realization values, and variance of 0.13 μ V 2 ,
  • e x , d ( i ) —resultant dynamic error signal, whose variance values σ x , d , k 2 for subsequent harmonics is estimated using the proposed method.
According to the considerations in [16], the origin of the dynamic error signal e x , d ( i ) for the discussed measurement chain is the imperfect dynamics of the operational amplifier operating in a non-inverting configuration, whose cutoff frequency is about 165 kHz. This component introduces a significant phase shift:
φ ˜ y ω 6.26 · 10 13 ω 2 5.73 · 10 7 ω ,
for a harmonic with angular frequency ω , where for the ideal measurement task, φ ˙ y ( ω ) = 0   rad . Regarding gain values, it can be assumed that for frequencies in the range [ 0 ;   1 2 f s ] , K ˜ y ( ω ) K ˙ y ( ω ) = 3.29   V / V holds.
Therefore, the information presented in [16] concerning the metrological properties of the analyzed measurement chain allows direct application of the proposed method to estimate the variance of the dynamic error signal. In this section of the paper, the proposed algorithm is applied to the quantity x ( i ) , which in this case is the input to the Discrete Wavelet Transform (DWT) algorithm.
For the given parameters of the signal s ( t ) , 30,000 sets of N = 128 subsequent values of the realization of the quantity x ( i ) were collected, with the initial phase of the signal s ( t ) randomized. The proposed method for estimating the variance σ e 2 of the dynamic error signal was applied to the obtained samples. Then, the trajectory/realization/behavior of the error signal e x , Σ ( i ) and its variance σ x , Σ 2 were estimated according to Equation (48), based on which the actual value σ s 2 of the variance of the dynamic error signal was estimated:
σ s 2 = σ x , Σ 2 σ x , r 2 .
It should be noted that the variance estimated according to Equation (50) may be higher in practice than the actual variance of the dynamic error signal e x , d ( i ) . This equation assumes that, apart from the errors mentioned in the Introduction, there are no other significant sources of error. This assumption may not be entirely accurate, but without knowledge of the exact error model of the entire measurement chain, determining the exact value of this parameter is not possible.

5.1. The Case of a Monoharmonic Signal

Although the application of the proposed method does not require prior knowledge of the processed signal, verifying its effectiveness must be based on certain assumptions that allow for determination of the true value of the estimated parameter. In the first experiment, a sinusoidally varying signal described by the following equation was applied to the input of the measurement chain:
s ˙ t = D s , o + E s , o sin ω s , o t + φ s , o ,
where E s , o is the amplitude, D s , o is the direct current (DC) component, φ s , o is the phase, and ω s , o is the angular frequency of the signal. The source of the s ( t ) signal was the RIGOL DG1011 [49] arbitrary waveform generator, and the amplitude setpoints were verified using an additional Agilent 3458A [50] multimeter, assuming that E s , o = 2 E R M S , where E R M S is the effective value of the s ( t ) signal indicated by the instrument [24].
The experiment was performed for various frequencies of the s ( t ) waveform with amplitude E s , o = 0.479   V and constant component D s , o = 0.507   V . The determined relative errors in estimating the variance of the dynamic error signal for this experiment are presented in Table 4, while histograms of the realization values of this quantity for selected experiment parameters are shown in Figure 8.

5.2. The Case of a Polyharmonic Signal

The final measurement experiment concerned the case where the input of the analyzed measurement chain was supplied with a polyharmonic input signal s ( t ) described by the following equation:
s ˙ t = D s , o + E s , o π 8 i = 1 1 i 1 2 i 1 2 sin ω s , o t 2 i 1 + φ s , o ,
where D s , o is the DC component, E s , o is the amplitude, ω s , o is the angular frequency, and φ s , o is the phase shift of the fundamental harmonic of the signal. The source of the s ( t ) signal was the RIGOL DG1011 [49] arbitrary waveform generator, and the amplitude setpoints were verified using an additional Agilent 3458A [50] multimeter, assuming that E s , o = 3 E R M S , where E R M S is the effective value of the s ( t ) signal indicated by the instrument [24].
The experiment was performed for various frequencies of the s ( t ) waveform, with amplitude E s , o = 0.479   V and constant component D s , o = 0.507   V . The determined relative errors in estimating the variance of the dynamic error signal for this experiment are presented in Table 5, while histograms of the realization values of this quantity for selected parameters are shown in Figure 9.

5.3. Analysis of the Obtained Measurement Results

In analyzing the results of the conducted experiments, it can be seen that the proposed method is suitable for use with a typical measurement chain built using a “system-on-chip” solution. For selected experimental conditions, the relative error in estimating the variance value exceeds ±10%, but it should be emphasized that a similar magnitude of discrepancies was observed using the analytical method in [16]. As in the cited work, the cause of the discrepancy between the obtained results is the inaccuracy in determining the parameters of the error model of the analyzed measurement chain and the presence of additional error signals, the parameters of which were not estimated accurately enough or were completely omitted, being considered insignificant.
By comparing the results of the measurement and simulation experiments, it can be seen that in the simulation case, the expected value of the estimated parameter was consistently very close to the true value. The variability of this value, and consequently the relative error dispersion, resulted from confounding factors discussed in the description of the experiments. Therefore, it can be concluded that in the measurement experiment, the non-zero expected value of the relative estimation error does not arise from the properties or specificity of the proposed method.
In the case of the applied measurement chain, the DWT algorithm was used, the implementation of which was made in the matrix form as show in [51]. The output quantities of the algorithm were determined according to the method described in the work [18], using for this purpose the function arm_mat_mult_f32 contained in the CMSIS-DSP [4] library. At a sampling frequency of 48 kHz, collecting the vector N = 128 of input quantities x ( i ) needed to perform a single iteration of the measurement of the used algorithm took 2.67 ms, while the time needed to determine the vector of output quantities of this algorithm was 1.85 ms. The realization of Equation (20) was implemented using the arm_rfft_fast_f32 function of the CMSIS-DSP [4] library, where the time required to perform the calculations was 0.069 ms. The time required to estimate the variance value according to Equation (28) was 0.086 ms, where Equation (21) was implemented using the arm_cmplx_mag_f32 function of the CMSIS-DSP [4] library. It can therefore be seen that in the presented measurement system, the proposed method can be used in real time. The source code of the program used in the discussed measurement system can be found in [52] repository.
An alternative to using the matrix form of the algorithm can be a recursive implementation, in which the wavelet transform algorithm is treated as a pair of filters [7]. This approach was used in the [53] library, where for the case of the analyzed measurement chain, the time needed to implement the wavelet transform algorithm using the discussed method is 0.981 ms. It should be noted here that the originally proposed method presenting the wavelet transform algorithm in the matrix form is much more universal and simpler to implement, which is why it is more user-friendly for the measurement chain designer than the solution proposed in [53]. Regardless of the method of implementing the algorithm, it can be noticed that for the analyzed measurement chain, the time needed to perform calculations is much shorter than the acquisition time of a single vector of input quantities of this algorithm, hence the system can operate in continuous mode.

6. Conclusions

The presented experiments show that the proposed method is effective and suitable for the assigned task. The expected relative error in estimating the variance of the dynamic error signal is close to zero in all analyzed scenarios, where both the measurement window and the correction method for the DFT algorithm output were used. The variability of this effectiveness indicator depended directly on the application conditions mainly on the noise level in the processed measurement signal.
Using a measurement window during the application of the proposed method is necessary to mitigate the effects of spectral leakage. The measurement window used should have good dynamic characteristics, with resolution being a secondary consideration in this case. Because the use of the “Bartlett” measurement window during the experiments produced results very similar to those of the “Hamming” window, it is recommended for cases where lower computational complexity is important. Using a low-dynamic measurement window increases the expected value of the relative error in estimating the variance of the dynamic error signal.
Correcting the amplitude value of the DFT algorithm coefficients before applying the method is necessary when random error signals are present in the processed measurement signal. This correction algorithm allows obtaining an expected value of the estimated quantity close to zero, while its variability is directly proportional to the ratio of noise power to useful signal power. The operation of the proposed correction algorithm does not affect the effectiveness of the proposed method when these error signals are absent.
The experiments showed that the simplifications proposed in Equation (30) do not significantly affect the effectiveness of the proposed method. This is an important property because the form of Equation (27) is much more complex. This property holds both when spectral leakage occurs and when noise is present in the measurement signal.
Therefore, the presented method makes it possible to estimate the parameters of the dynamic error signal associated with the input quantities of digital signal processing algorithms, enabling the development of an uncertainty budget for the output quantities without prior knowledge of the spectrum or nature of the processed signal. Applications of the proposed method may include cases where wavelet transformation algorithms [5,6,7,10,11,16,18] are used in the measurement chain or multiplicative algorithms used during power and energy measurement [8,9].
The use of the proposed method enables the development of the uncertainty budget of the output quantities of the measurement chain, using various types of data processing algorithms. This operation is extremely important when, based on the analysis of the values of these quantities, a decision related to the task being performed is made, for example, on the activation of protections related to the detection of a short circuit or a fault in the transmission network [10,11]. This work, together with the works [16,18,23,51], is a comprehensive guide to metrological analysis in the described cases. It should be noted here that this analysis is most often omitted, mainly due to the high degree of complexity or the lack of appropriate mathematical models.
Another approach to solving the problem presented in this paper may be to use the Prony’s method [54] to estimate the spectrum of the signal processed by the measurement chain. This method is resistant to the phenomenon of spectrum leakage and can be used when the processed signal contains noise. It should be noted, however, that the discussed method requires an appropriate selection of the model order and is also characterized by greater computational complexity. A significant disadvantage of the Prony’s method is also the need to solve a system of equations, but in the case of the CMSIS-DSP [4] library available for the ARM platform, there is no ready implementation of the algorithm enabling this operation.

Author Contributions

Data curation, Ł.D.; Formal analysis, M.K. and J.R.; Funding acquisition, M.K.; Investigation, Ł.D.; Methodology, M.K. and Ł.D.; Project administration, M.K.; Resources, Ł.D.; Software, Ł.D.; Supervision, J.R.; Validation, M.K. and J.R.; Writing—original draft, Ł.D.; Writing—review and editing, M.K. and J.R. All authors have read and agreed to the published version of the manuscript.

Funding

This research was partially funded by Rector of Silesian University of Technology grant number 05/020/RGJ25/0094.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

All data related to the simulation experiments supporting the conclusions of this article can be replicated using examples provided on GitHub [47]. The raw data obtained from measurement experiments will be made available by the authors upon request.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
A/AAnalog-to-analog
A/DAnalog-to-digital converter
DCDirect current
D/DDigital-to-digital
DFTDiscrete Fourier transform
DWTDiscrete wavelet transform
S/HSample-and-hold

References

  1. Saleh, R.; Wilton, S.; Mirabbasi, S.; Hu, A.; Greenstreet, M.; Lemieux, G.; Pande, P.P.; Grecu, C.; Ivanov, A. System-on-chip. Proc. IEEE 2006, 94, 1050–1069. [Google Scholar] [CrossRef]
  2. Reay, D.S. Digital Signal Processing Using the ARM Cortex M4; John Wiley & Sons: Hoboken, NJ, USA, 2015. [Google Scholar]
  3. Oppenheim, A.V.; Schafer, R.W. Discrete-Time Signal Processing, 3rd ed.; Pearson: London, UK, 2009. [Google Scholar]
  4. ARM Limited. CMSIS-DSP—Embedded Compute Library for Cortex-M and Cortex-A. 2024. Available online: https://arm-software.github.io/CMSIS-DSP (accessed on 20 June 2025).
  5. Mallat, S. A Wavelet Tour of Signal Processing, 3rd ed.; Academic Press: Cambridge, MA, USA, 2008. [Google Scholar]
  6. Addison, P.S. The Illustrated Wavelet Transform Handbook: Introductory Theory and Applications in Science, Engineering, Medicine and Finance, 2nd ed.; CRC Press: Boca Raton, FL, USA, 2017. [Google Scholar]
  7. Akujuobi, C.M. Wavelets and Wavelet Transform Systems and Their Applications; Springer: Berlin/Heidelberg, Germany, 2022. [Google Scholar]
  8. Alegria, F. Using digital methods in active power measurement. Acta IMEKO 2023, 12, 1–8. [Google Scholar] [CrossRef]
  9. Pandey, S. Analog Multiplier Based Single Phase Power Measurement. J. Electr. Electron. Syst. 2016, 5, 1–4. [Google Scholar] [CrossRef]
  10. Liu, Z.; Zhao, Z.; Huang, G.; Wang, F.; Wang, P.; Liang, J. Power Grid Faults Diagnosis Based on Improved Synchrosqueezing Wavelet Transform and ConvNeXt-v2 Network. Electronics 2025, 14, 388. [Google Scholar] [CrossRef]
  11. Altaie, A.S.; Abderrahim, M.; Alkhazraji, A.A. Transmission Line Fault Classification Based on the Combination of Scaled Wavelet Scalograms and CNNs Using a One-Side Sensor for Data Collection. Sensors 2024, 24, 2124. [Google Scholar] [CrossRef]
  12. Agarwal, S.; Sharma, S.; Rahman, M.H.; Vranckx, S.; Maiheu, B.; Blyth, L.; Janssen, S.; Gargava, P.; Shukla, V.K.; Batra, S.; et al. Air quality forecasting using artificial neural networks with real time dynamic error correction in highly polluted regions. Sci. Total Environ. 2020, 735, 139454. [Google Scholar] [CrossRef]
  13. Volosnikov, A.S. Measurement System Based on Nonrecursive Filters with the Optimal Correction of the Dynamic Measurement Error. Meas. Tech. 2023, 65, 720–728. [Google Scholar] [CrossRef]
  14. Jakubiec, J.; Roj, J. Error Analysis of Analytical and Neural Real-Time Reconstruction of Analog Signals; Wydawnictwo Politechniki Śląskiej: Gliwice, Poland, 2024. [Google Scholar] [CrossRef]
  15. Roj, J. Estimation of the artificial neural network uncertainty used for measurand reconstruction in a sampling transducer. IET Sci. Meas. Technol. 2014, 8, 23–29. [Google Scholar] [CrossRef]
  16. Kampik, M.; Roj, J.; Dróżdż, L. Error Model of a Measurement Chain Containing the Discrete Wavelet Transform Algorithm. Appl. Sci. 2024, 14, 3461. [Google Scholar] [CrossRef]
  17. Joint Committee for Guides in Metrology. Evaluation of Measurement Data—Guide to the Expression of Uncertainty in Measurement; JCGM: Sèvres, France, 2008; Available online: https://www.bipm.org/documents/20126/2071204/JCGM_100_2008_E.pdf (accessed on 20 June 2025).
  18. Kampik, M.; Roj, J.; Dróżdż, L. Estimation of the resultant expanded uncertainty of the output quantities of the measurement chain using the discrete wavelet transform algorithm. Appl. Sci. 2024, 14, 3691. [Google Scholar] [CrossRef]
  19. Jakubiec, J.; Konopka, K. The error based model of a single measurement result in uncertainty calculation of the mean value of series. Probl. Prog. Metrol. 2015, 20, 75–78. [Google Scholar]
  20. Jakubiec, J. Reducing interval arithmetic in dynamic error evaluation. In Proceedings of the 5th International Workshop on ADC Modelling and Testing, XVI IMEKO World Congress, Wien, Austria, 26–28 September 2000; pp. 100–105. [Google Scholar]
  21. Ruhm, K.H. Deterministic, Nondeterministic Signals; Institute for Dynamic Systems and Control: Zurich, Switzerland, 2008. [Google Scholar]
  22. Shi, S.; Yang, L.; Lin, J.; Long, C.; Deng, R.; Zhang, Z.; Zhu, J. Dynamic Measurement Error Modeling and Analysis in a Photoelectric Scanning Measurement Network. Appl. Sci. 2019, 9, 62. [Google Scholar] [CrossRef]
  23. Dróżdż, L.; Roj, J. Origin and properties of own error signals of the discrete wavelet transform algorithms. Int. J. Electron. Telecommun. 2024, 70, 643–648. [Google Scholar] [CrossRef]
  24. Oppenheim, A.V.; Willsky, A.S.; Nawab, S.H. Signals & Systems, 2nd ed.; Pearson: London, UK, 2013. [Google Scholar]
  25. Proakis, J.G.; Manolakis, D.G. Digital Signal Processing: Principles, Algorithms and Applications, 5th ed.; Pearson: London, UK, 2021. [Google Scholar]
  26. Horalek, V. Analysis of basic probability distributions, their properties and use in determining type B evaluation of measurement uncertainties. Measurement 2013, 46, 16–23. [Google Scholar] [CrossRef]
  27. Kampik, M.; Roj, J.; Dróżdż, L. A Method for Estimating the Resultant Expanded Uncertainty Value Based on Interval Arithmetic. Appl. Sci. 2024, 14, 7334. [Google Scholar] [CrossRef]
  28. Koliander, G.; El-Laham, Y.; Djurić, P.M.; Hlawatsch, F. Fusion of probability density functions. Proc. IEEE 2022, 110, 404–453. [Google Scholar] [CrossRef]
  29. Zhang, Z.; Wang, J.; Jiang, C.; Huang, Z.L. A new uncertainty propagation method considering multimodal probability density functions. Struct. Multidiscip. Optim. 2019, 60, 1983–1999. [Google Scholar] [CrossRef]
  30. Dieck, R.H. Measurement Uncertainty: Methods and Applications; ISA: Dubai, United Arab Emirates, 2017. [Google Scholar]
  31. Yang, L.; Guo, Y. Combining pre-and post-model information in the uncertainty quantification of non-deterministic models using an extended Bayesian melding approach. Inf. Sci. 2019, 502, 146–163. [Google Scholar] [CrossRef]
  32. Urbanski, M.K.; Wąsowski, J. Fuzzy approach to the theory of measurement inexactness. Measurement 2003, 34, 67–74. [Google Scholar] [CrossRef]
  33. Joint Committee for Guides in Metrology. Evaluation of Measurement Data—Propagation of Distributions Using a Monte Carlo Method; JCGM: Sèvres, France, 2008; Available online: https://www.bipm.org/documents/20126/2071204/JCGM_101_2008_E.pdf (accessed on 20 June 2025).
  34. Dróżdż, L. Reductive Interval Arithmetic Method Application Example on GitHub, 2024. Available online: https://github.com/Kuszki/Octave-Uncertainty-RIA-Example (accessed on 20 June 2025).
  35. STMicroelectronics. Application note AN1636; STMicroelectronics: Geneva, Switzerland, 2003. [Google Scholar]
  36. Baker, B.C. Optimize Your SAR ADC Design; Texas Instruments Inc.: Dallas, TX, USA, 2019. [Google Scholar]
  37. Arpaia, P.; Baccigalupi, C.; Martino, M. Metrological characterization of high-performance delta-sigma ADCs. In Proceedings of the 2018 IEEE International Instrumentation and Measurement Technology Conference (I2MTC), Houston, TX, USA, 14–17 May 2018; pp. 1–6. [Google Scholar] [CrossRef]
  38. Hajek, K.; Kohl, Z. Multiple Aliasing of Windowed Real-Valued Signal as a Cause of Accuracy Limitation of DFT Methods. IEEE Access 2025, 13, 6515–6526. [Google Scholar] [CrossRef]
  39. Qian, W.; Xiao, Y.; Yong, R. Spectrum leakage suppression for multi-frequency signal based on DFT. In Proceedings of the 2017 13th IEEE International Conference on Electronic Measurement & Instruments (ICEMI), Yangzhou, China, 20–23 October 2017; pp. 394–399. [Google Scholar] [CrossRef]
  40. Vimala, C.; Priya, P.A. Noise reduction based on Double Density Discrete Wavelet Transform. In Proceedings of the 2014 International Conference on Smart Structures and Systems (ICSSS), Chennai, India, 9 October 2014; pp. 15–18. [Google Scholar] [CrossRef]
  41. Halidou, A.; Mohamadou, Y.; Ari, A.A.A.; Zacko, E.J.G. Review of wavelet denoising algorithms. Multimed. Tools Appl. 2023, 82, 41539–41569. [Google Scholar] [CrossRef]
  42. Prabhu, K.M.M. Window Functions and Their Applications in Signal Processing; Taylor & Francis: Boca Raton, FL, USA, 2014. [Google Scholar] [CrossRef]
  43. Janssen, H. Monte-Carlo based uncertainty analysis: Sampling efficiency and sampling convergence. Reliab. Eng. Syst. Saf. 2013, 109, 123–132. [Google Scholar] [CrossRef]
  44. Grimmett, G.; Stirzaker, D. Probability and Random Processes, 4th ed.; Oxford University Press: Oxford, UK, 2020. [Google Scholar]
  45. Kuo, H.H. White Noise Distribution Theory; CRC Press: Boca Raton, FL, USA, 2018. [Google Scholar] [CrossRef]
  46. Eaton, J.W. GNU Octave Official Website. 2024. Available online: https://octave.org/ (accessed on 20 June 2025).
  47. Dróżdż, L. Dynamic Error Parameters Estimation Example on GitHub, 2025. Available online: https://github.com/Kuszki/Octave-Uncertainty-DEPE-Example (accessed on 20 June 2025).
  48. Topór-Kaminski, T.; Jakubiec, J. Uncertainty modelling method of data series processing algorithms. In Proceedings of the IMEKO TC-4 Symposium on Development in Digital Measuring Instrumentation and 3rd Workshop on ADC Modelling and Testing, Naples, Italy, 17–18 September 1998; Volume 2, pp. 631–636. [Google Scholar]
  49. RIGOL Technologies Inc. User’s Guide DG1-070518. 2007. Available online: https://supportjp.rigol.com/Public/Uploads/uploadfile/files/20210729/DSB01100-1110.pdf (accessed on 20 June 2025).
  50. Agilent Technologies Inc. Agilent 3458A Multimeter. 2011. Available online: https://dfzk-www.oss-cn-beijing.aliyuncs.com/www-PRD/resources/files/Ag_3458A_UserGuide_en.pdf (accessed on 20 June 2025).
  51. Roj, J.; Dróżdż, L. Propagation of Random Errors by the Discrete Wavelet Transform Algorithm. Electronics 2021, 10, 764. [Google Scholar] [CrossRef]
  52. Dróżdż, L. STM32F411 Sampler Using FWT and DSP Package Project on GitHub. 2025. Available online: https://github.com/Kuszki/F411-FWT-Sampler (accessed on 20 June 2025).
  53. Montalivet, E. A C Implementation of the One Dimensional Discrete Wavelet Transform (DWT) Based on CMSIS Library. 2025. Available online: https://github.com/etiennedemontalivet/arm-dwt-c-library (accessed on 20 June 2025).
  54. Zygarlicki, J.; Zygarlicka, M.; Mroczka, J.; Latawiec, K.J. A reduced Prony’s method in power-quality analysis—Parameters selection. IEEE Trans. Power Deliv. 2010, 25, 979–986. [Google Scholar] [CrossRef]
Figure 1. Diagram of a typical implementation of a measurement chain (source [16] under the CC BY 4.0 license).
Figure 1. Diagram of a typical implementation of a measurement chain (source [16] under the CC BY 4.0 license).
Applsci 15 07063 g001
Figure 2. Diagram of the measurement chain analog part (source [16] under the CC BY 4.0 license).
Figure 2. Diagram of the measurement chain analog part (source [16] under the CC BY 4.0 license).
Applsci 15 07063 g002
Figure 3. The values of the quantity δ (34) for the input signal described by Equation (37) (selected cases without a window function, with expanded uncertainty at a 95% confidence level).
Figure 3. The values of the quantity δ (34) for the input signal described by Equation (37) (selected cases without a window function, with expanded uncertainty at a 95% confidence level).
Applsci 15 07063 g003
Figure 4. The values of the quantity δ (34) for the input signal described by Equation (37) (selected cases using a window function, with expanded uncertainty at a 95% confidence level).
Figure 4. The values of the quantity δ (34) for the input signal described by Equation (37) (selected cases using a window function, with expanded uncertainty at a 95% confidence level).
Applsci 15 07063 g004
Figure 5. The values of the quantity δ (34) for the input signal described by Equation (39) (selected cases where N = 64 , using the “Hamming” window function and thresholding described by Equation (32), with expanded uncertainty at a 95% confidence level).
Figure 5. The values of the quantity δ (34) for the input signal described by Equation (39) (selected cases where N = 64 , using the “Hamming” window function and thresholding described by Equation (32), with expanded uncertainty at a 95% confidence level).
Applsci 15 07063 g005
Figure 6. Histograms of the obtained values of the realization of the relative error in the estimation of the variance of the dynamic error signal (34) for the input signal (45), depending on the adopted experiment parameters (selected cases using the “Hamming” window function, with expanded uncertainty at a 95% confidence level).
Figure 6. Histograms of the obtained values of the realization of the relative error in the estimation of the variance of the dynamic error signal (34) for the input signal (45), depending on the adopted experiment parameters (selected cases using the “Hamming” window function, with expanded uncertainty at a 95% confidence level).
Applsci 15 07063 g006
Figure 7. Schematic diagram of the analyzed measurement chain (source: [16] under the CC BY 4.0 license).
Figure 7. Schematic diagram of the analyzed measurement chain (source: [16] under the CC BY 4.0 license).
Applsci 15 07063 g007
Figure 8. Histograms of the realization values of the relative error in estimating the variance of the dynamic error signal (selected cases of monoharmonic signal, with expanded uncertainty at a 95% confidence level).
Figure 8. Histograms of the realization values of the relative error in estimating the variance of the dynamic error signal (selected cases of monoharmonic signal, with expanded uncertainty at a 95% confidence level).
Applsci 15 07063 g008
Figure 9. Histograms of the realization values of the relative error in estimating the variance of the dynamic error signal (selected cases of polyharmonic signal, with expanded uncertainty at a 95% confidence level).
Figure 9. Histograms of the realization values of the relative error in estimating the variance of the dynamic error signal (selected cases of polyharmonic signal, with expanded uncertainty at a 95% confidence level).
Applsci 15 07063 g009
Table 1. The values of the quantity δ  (34) for the input signal described by Equation (37) (selected cases * without a window function, with expanded uncertainty at a 95% confidence level).
Table 1. The values of the quantity δ  (34) for the input signal described by Equation (37) (selected cases * without a window function, with expanded uncertainty at a 95% confidence level).
f m u l f o = 6   kHz f o = 12   kHZ
N = 32 N = 64 N = 128 N = 32 N = 64 N = 128
0.9 2.1 ± 1.2 1.14 ± 0.31 0.57 ± 0.11 2.19 ± 0.88 1.05 ± 0.46 0.51 ± 0.23
0.8 3.7 ± 9.8 1.0 ± 3.8 0.4 ± 1.7 2.68 ± 0.45 1.32 ± 0.17 0.65 ± 0.07
0.7 14 ± 22 5.5 ± 9.0 2.4 ± 4.2 1.4 ± 3.4 0.7 ± 1.6 0.37 ± 0.79
0.6 25 ± 32 10 ± 14 4.8 ± 6.5 1.0 ± 6.8 0.5 ± 3.3 0.2 ± 1.6
0.5 31 ± 36 14 ± 16 6.5 ± 7.8 3.8 ± 9.4 1.8 ± 4.6 0.9 ± 2.3
0.4 32 ± 34 15 ± 16 7.0 ± 7.7 6 ± 10 2.8 ± 5.1 1.4 ± 2.5
0.3 26 ± 26 12 ± 12 6.1 ± 6.1 6.1 ± 8.8 3.0 ± 4.5 1.5 ± 2.2
0.2 17 ± 15 8.3 ± 7.4 4.1 ± 3.7 5.0 ± 6.0 2.5 ± 3.0 1.2 ± 1.5
0.1 7.1 ± 5.5 3.5 ± 2.7 1.8 ± 1.4 2.6 ± 2.7 1.3 ± 1.3 0.67 ± 0.68
0 0.00 ± 0.00 0.00 ± 0.00 0.00 ± 0.00 0.00 ± 0.00 0.00 ± 0.00 0.00 ± 0.00
0.1 2.48 ± 0.03 1.20 ± 0.07 0.59 ± 0.05 2.1 ± 1.0 1.02 ± 0.50 0.50 ± 0.24
0.2 0.1 ± 4.8 0.2 ± 2.7 0.2 ± 1.5 2.87 ± 0.14 1.36 ± 0.02 0.66 ± 0.03
0.3 6 ± 12 3.6 ± 6.8 2.0 ± 3.6 2.2 ± 2.3 0.9 ± 1.3 0.42 ± 0.72
0.4 12 ± 19 7 ± 11 4.1 ± 5.7 0.4 ± 5.3 0.1 ± 3.0 0.1 ± 1.6
0.5 17 ± 23 10 ± 13 5.7 ± 7.0 1.9 ± 7.8 1.4 ± 4.2 0.8 ± 2.2
0.6 19 ± 22 11 ± 13 6.2 ± 6.8 3.8 ± 8.8 2.3 ± 4.7 1.3 ± 2.5
0.7 17 ± 17 10 ± 10 5.4 ± 5.5 4.5 ± 7.9 2.6 ± 4.2 1.4 ± 2.2
0.8 11 ± 11 6.8 ± 6.1 3.7 ± 3.3 3.9 ± 5.6 2.2 ± 2.9 1.2 ± 1.5
0.9 5.2 ± 4.1 3.0 ± 2.3 1.6 ± 1.3 2.2 ± 2.6 1.2 ± 1.3 0.64 ± 0.67
* For 95% of all results, the values of δ ¯ were within the range [ 7 ;   37 ] % for both (27) and (30) methods.
Table 2. The values of the quantity δ  (34) for the input signal described by Equation (37) (selected cases * using a window function, with expanded uncertainty at a 95% confidence level).
Table 2. The values of the quantity δ  (34) for the input signal described by Equation (37) (selected cases * using a window function, with expanded uncertainty at a 95% confidence level).
f m u l f o =   6 kHz f o = 12   kHz
HammingBartlettBlackmanHammingBartlettBlackman
0.9 0.53 ± 0.00 0.62 ± 0.27 3.19 ± 0.00 0.10 ± 0.01 0.14 ± 0.01 0.71 ± 0.00
0.8 0.55 ± 0.06 0.60 ± 0.27 3.10 ± 0.00 0.10 ± 0.00 0.13 ± 0.01 0.70 ± 0.00
0.7 0.61 ± 0.15 0.58 ± 0.26 3.02 ± 0.00 0.11 ± 0.03 0.13 ± 0.01 0.69 ± 0.00
0.6 0.67 ± 0.23 0.57 ± 0.25 2.94 ± 0.00 0.12 ± 0.05 0.13 ± 0.01 0.68 ± 0.00
0.5 0.71 ± 0.27 0.55 ± 0.24 2.86 ± 0.00 0.14 ± 0.08 0.13 ± 0.01 0.67 ± 0.00
0.4 0.71 ± 0.26 0.54 ± 0.23 2.78 ± 0.00 0.16 ± 0.08 0.13 ± 0.00 0.66 ± 0.00
0.3 0.67 ± 0.20 0.53 ± 0.22 2.71 ± 0.00 0.16 ± 0.07 0.13 ± 0.00 0.65 ± 0.00
0.2 0.59 ± 0.12 0.51 ± 0.21 2.64 ± 0.00 0.15 ± 0.05 0.12 ± 0.00 0.64 ± 0.00
0.1 0.50 ± 0.04 0.50 ± 0.20 2.58 ± 0.00 0.13 ± 0.02 0.12 ± 0.01 0.64 ± 0.00
0 0.43 ± 0.00 0.49 ± 0.20 2.51 ± 0.00 0.11 ± 0.00 0.12 ± 0.01 0.63 ± 0.00
0.1 0.40 ± 0.00 0.47 ± 0.20 2.45 ± 0.00 0.09 ± 0.01 0.12 ± 0.01 0.62 ± 0.00
0.2 0.41 ± 0.05 0.46 ± 0.20 2.39 ± 0.00 0.08 ± 0.00 0.12 ± 0.01 0.61 ± 0.00
0.3 0.46 ± 0.11 0.45 ± 0.19 2.33 ± 0.00 0.09 ± 0.02 0.12 ± 0.01 0.61 ± 0.00
0.4 0.51 ± 0.18 0.44 ± 0.19 2.28 ± 0.00 0.10 ± 0.05 0.11 ± 0.01 0.60 ± 0.00
0.5 0.55 ± 0.21 0.43 ± 0.18 2.23 ± 0.00 0.12 ± 0.07 0.11 ± 0.01 0.59 ± 0.00
0.6 0.56 ± 0.21 0.42 ± 0.17 2.17 ± 0.00 0.14 ± 0.08 0.11 ± 0.01 0.58 ± 0.00
0.7 0.52 ± 0.16 0.41 ± 0.16 2.13 ± 0.00 0.14 ± 0.07 0.11 ± 0.01 0.58 ± 0.00
0.8 0.46 ± 0.10 0.40 ± 0.16 2.08 ± 0.00 0.13 ± 0.05 0.11 ± 0.02 0.57 ± 0.00
0.9 0.40 ± 0.04 0.39 ± 0.15 2.03 ± 0.00 0.12 ± 0.02 0.11 ± 0.02 0.56 ± 0.00
* For 95% of all results in the case of using the “Hamming” window function, the values of δ ¯ were within the range [ 0.3 ;   2.8 ] %.
Table 3. Values of the quantity δ  (34) for the input signal described by Equation (37), in the case (of a) using thresholding as described in Equation (32), and (b) without thresholding (selected cases * using the “Hamming” window function, with expanded uncertainty at a 95% confidence level).
Table 3. Values of the quantity δ  (34) for the input signal described by Equation (37), in the case (of a) using thresholding as described in Equation (32), and (b) without thresholding (selected cases * using the “Hamming” window function, with expanded uncertainty at a 95% confidence level).
S N R , dB f o = 9   kHz , f m u l = 0.5 f o = 9   kHz , f m u l = 0.0 f o = 9   kHz , f m u l = 0.5
(a) (b) (a) (b) (a) (b)
1.33 ± 0.11 1.19 ± 0.20 1.37 ± 0.00 1.37 ± 0.00 1.37 ± 0.10 1.26 ± 0.18
29 1.3 ± 2.3 0.9 ± 2.3 1.4 ± 2.3 1.1 ± 2.3 1.4 ± 2.3 1.0 ± 2.4
27 1.3 ± 2.9 0.7 ± 3.0 1.4 ± 2.9 0.9 ± 3.0 1.4 ± 2.9 0.8 ± 2.9
25 1.3 ± 3.7 0.4 ± 3.7 1.3 ± 3.7 0.7 ± 3.7 1.3 ± 3.7 0.6 ± 3.7
23 1.3 ± 4.7 0.0 ± 4.7 1.3 ± 4.6 0.3 ± 4.7 1.3 ± 4.7 0.2 ± 4.7
21 1.2 ± 5.9 0.7 ± 6.0 1.3 ± 5.8 0.4 ± 5.9 1.3 ± 5.9 0.4 ± 6.0
19 1.2 ± 7.5 1.9 ± 7.7 1.3 ± 7.4 1.4 ± 7.6 1.3 ± 7.5 1.3 ± 7.5
17 1.5 ± 9.7 3.7 ± 9.8 1.2 ± 9.3 3.1 ± 9.7 1.5 ± 9.7 2.8 ± 9.7
15 2 ± 12 6 ± 13 1 ± 12 6 ± 13 2 ± 12 5 ± 12
13 3 ± 15 11 ± 17 1 ± 15 10 ± 16 3 ± 15 9 ± 16
11 3 ± 18 18 ± 22 1 ± 19 16 ± 22 3 ± 18 15 ± 21
9 3 ± 22 29 ± 30 0 ± 23 27 ± 29 3 ± 22 25 ± 28
7 2 ± 28 47 ± 42 1 ± 34 43 ± 40 2 ± 28 40 ± 39
5 2 ± 35 75 ± 60 6 ± 44 69 ± 57 2 ± 35 64 ± 55
3 1 ± 45 120 ± 88 14 ± 53 110 ± 82 1 ± 45 102 ± 78
* For 95% of all results, in the case of using a window function with thresholding, the values of δ ¯ were within the range [ 2.0 ;   2.6 ] %.
Table 4. Results * of the measurement experiment for the case of the monoharmonic signal s ( t ) described in Equation (51) (with expanded uncertainty at a 95% confidence level).
Table 4. Results * of the measurement experiment for the case of the monoharmonic signal s ( t ) described in Equation (51) (with expanded uncertainty at a 95% confidence level).
f s , o , kHz σ s 2 , μ V 2 σ e 2 , μ V 2 δ ¯ , %
1 1.77 1.71 3.67 ± 0.90
2 6.33 6.34 0.10 ± 0.07
3 13.0 14.2 9.28 ± 0.06
4 21.7 25.5 17.38 ± 0.09
5 38.9 40.2 3.21 ± 0.04
6 54.1 58.7 8.56 ± 0.12
7 68.8 80.8 17.48 ± 0.05
8107107 0.10 ± 0.13
9133137 3.28 ± 0.06
10158172 8.54 ± 0.05
11213210−1.26 ± 0.05
12262253 3.31 ± 0.34
13277301 8.71 ± 0.04
14338353 4.32 ± 0.04
15394410 4.01 ± 0.08
16502474 5.69 ± 0.58
17510540 5.94 ± 0.04
18565614 8.76 ± 0.33
19749691 7.66 ± 0.05
20670776 15.78 ± 0.22
21777868 11.62 ± 0.10
* For 95% of all results, the values of δ were within the range [ 7.50 ;   17.52 ] %.
Table 5. Results * of the measurement experiment for the case of the polyharmonic signal s ( t ) described in Equation (51) (with expanded uncertainty at a 95% confidence level).
Table 5. Results * of the measurement experiment for the case of the polyharmonic signal s ( t ) described in Equation (51) (with expanded uncertainty at a 95% confidence level).
f s , o , kHz σ s 2 , μ V 2 σ e 2 , μ V 2 δ ¯ , %
1 1.07 1.35 26.0 ± 2.0
2 5.18 5.02 3.2 ± 6.0
3 9.93 11.3 14 ± 10
4 21.1 20.1 5 ± 12
5 34.2 30.9 9.70 ± 0.53
* For 95% of all results, the values of δ were within the range [ 14 ;   27 ] %.
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

Kampik, M.; Dróżdż, Ł.; Roj, J. Estimation of Dynamic Error Parameters in a Measurement Chain Based on the Spectrum of Input Quantities. Appl. Sci. 2025, 15, 7063. https://doi.org/10.3390/app15137063

AMA Style

Kampik M, Dróżdż Ł, Roj J. Estimation of Dynamic Error Parameters in a Measurement Chain Based on the Spectrum of Input Quantities. Applied Sciences. 2025; 15(13):7063. https://doi.org/10.3390/app15137063

Chicago/Turabian Style

Kampik, Marian, Łukasz Dróżdż, and Jerzy Roj. 2025. "Estimation of Dynamic Error Parameters in a Measurement Chain Based on the Spectrum of Input Quantities" Applied Sciences 15, no. 13: 7063. https://doi.org/10.3390/app15137063

APA Style

Kampik, M., Dróżdż, Ł., & Roj, J. (2025). Estimation of Dynamic Error Parameters in a Measurement Chain Based on the Spectrum of Input Quantities. Applied Sciences, 15(13), 7063. https://doi.org/10.3390/app15137063

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop