Next Article in Journal
Assessing the Influence of RMS and VDV on Analysis of Human Perception of Vibrations in Buildings Caused by Selected Sources of Traffic
Previous Article in Journal
Numerical Study for the Design of a Thermal Energy Storage System with Multiple Tunnels Based on Phase Change Material: Case Study Mining in Chile (Thermal Storage in Off-Grid Industrial Applications)
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Estimation of the Resultant Expanded Uncertainty of the Output Quantities of the Measurement Chain Using the Discrete Wavelet Transform Algorithm

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. 2024, 14(9), 3691; https://doi.org/10.3390/app14093691
Submission received: 2 April 2024 / Revised: 23 April 2024 / Accepted: 24 April 2024 / Published: 26 April 2024

Abstract

:

Featured Application

Estimation of expanded uncertainty in case of measurement chains containing wavelet transform algorithms without using Monte-Carlo simulations.

Abstract

This paper discusses the role of the discrete wavelet transform algorithm in processing error signals present in the input quantities of the algorithm. In considering the error model of the measurement chain, the parameters of the error signals in the input quantities of the wavelet transform algorithm are estimated. Subsequently, in accounting for the algorithm’s properties, the parameters of its output values are determined, and the resulting uncertainty values of the output quantities of the measurement chain are estimated. The interval reduction arithmetic method is employed in the calculations for estimating the expanded uncertainty. All findings were validated through measurements conducted using the implemented measurement chain.

1. Introduction

Currently, extensive applications of wavelet transform algorithms (WT) are well documented in the literature [1,2,3,4,5]. The algorithms discussed are used, for example, in medicine [6], image and sound processing [7], machine diagnostics [8], seismic vibration analysis [9], metal analysis [10], and even in the case of detecting leaks in pipelines [11]. However, there are few works that provide a universal and accessible method for measurement chain designers to estimate the uncertainty associated with the output values of these algorithms. The methods outlined in current works [12,13,14,15] are complex, requiring the measurement chain designer to possess in-depth knowledge of the algorithm being utilized.
The universal method for analyzing the metrological properties of WT algorithms was previously introduced in the [16], where the propagation of random error signals using these algorithms was discussed. Consequently, the issue of how these algorithms propagate deterministic error signals and their role in introducing self-error signals into the output values necessitates further examination. The method outlined in this paper, akin to that in the previous study, employs a matrix representation of the algorithm. Alongside the identification algorithm, which is elaborated on in [16,17,18], an analytical approach for determining the coefficients of this matrix will be presented.
The main goal of the work was to provide a quantitative description of how error signals present in the input quantities of the WT algorithm are transferred to its output and how the parameters of these signals change. This manuscript is divided into 6 sections. Section 1 contains an introduction and presents the most important assumptions of the work. Section 2 is devoted to the transmittance of the WT algorithm, explains how the quantity in question affects the error signals processed by the algorithm, and presents an analytical example of determining this quantity for selected algorithm parameters. Section 3 is devoted to the algorithm’s own errors, explaining their origins and describing the algorithm for identifying their parameters. Section 4 contains a description of the method used in this work to determine the resultant expanded uncertainty value. Section 5 presents an example of the application of the discussed analysis method and summarizes the results of a measurement experiment aimed at verifying its correctness. Section 6 contains the most important conclusions from the work.
All considerations presented in the work were verified through measurements using a previously constructed measurement chain. This article does not include a metrological analysis of the discussed measurement chain regarding the error model and metrological parameters of the input values of the WT algorithm. This aspect is addressed separately and has been detailed in another work [19]. The uncertainty budget of the signal processed by the WT algorithm has already been established and will serve as a reference for the metrological properties of this signal. Therefore, this work, in conjunction with the previous one [16,19], can offer guidance to the designers of measurement chains on how to implement the presented considerations in their own applications of measurement chains.
According to the division introduced in some works [16,19,20], the error signals can be divided according to the nature of the implementation, and we distinguish the following:
  • Static signals, where subsequent values are constant within a single measurement window;
  • Dynamic signals, where subsequent values change within a single measurement window, and it is possible to deterministically describe the course of these signals;
  • Random signals, where subsequent values change within a single measurement window, and it is not possible to deterministically describe the course of these signals;
due to the origin of the signals, we distinguish the following as well:
  • Own signals, introduced by the analyzed object, resulting from its imperfect properties;
  • Propagated signals transferred from the input to the output of an object, present in the input quantities.

2. Wavelet Transform Algorithm Transmittance

As described in [16,17,18], many data processing algorithms can be represented in matrix form. In denoting the successive input quantities of the algorithm as x ( i ) and the output quantities as X ( j ) , their relationships can be expressed in the following form:
X 0 X 1 X M 1 = a 0 , 0 a 0 , 1 a 0 , N 1 a 1 , 0 a 1 , N 1 a M 1 , 0 a M 1 , N 1 x 0 x 1 x N 1 ,
where N is the number of input quantities, M is the number of output quantities, and the symbol a i , j denotes the coefficients of the transformation matrix A of the algorithm, obtained according to the method described in [18] or determined analytically in accordance with the assumptions of the analyzed algorithm, as in [21]. The method discussed was previously utilized in papers [16,22] that described the transfer of random errors using discrete wavelet transform algorithms.
When analyzing how the discussed algorithm transfers errors of a deterministic nature, the transmittance of this algorithm should be taken into account. This algorithm will act as a filter and thus modify the spectrum of the processed signal. This work assumed that the transmittance of the algorithm is ideal, which means that the algorithm does not introduce any deterministic, own errors, but only transfers the errors present in the signal (in case the actual transmittance of the algorithm differs from the ideal one, an additional component of the self-error signal should be considered, as proposed in work [19] in the attached example). Additionally, the rounding errors introduced by the algorithm during the multiplication and addition operations are taken into account, as presented later in this paper. In general, the analysis discussed should be carried out individually for each output quantity of the algorithm. However, as described in [16,22], the values for successive rows of the transformation matrix related to the same level of decomposition are only shifted toward each other, and therefore, their impact on the transmission of the error signal remains constant. Therefore, an analysis can be performed for each level of signal decomposition and not for each output quantity separately, as demonstrated in this paper.

2.1. Relationship between Transmittance and Matrix Form of Algorithm

Based on Equation (1), the transmittance in the Z domain can be determined for the selected row of the transformation matrix in the form
H i z = a i , 0 + a i , 1 z 1 + + a i , N 1 z N + 1 = k = 0 N 1 a i , k z k ,
and after substituting z = e j ω T s , where T s = 1 f s is the sampling perioid corresponding to the sampling frequency f s , the dependence describing the transmittance of the selected i-th row in the pulsation domain denoted as G i ( j ω ) = H i ( e j ω T s ) is obtained. Based on the determined transmittance, the amplification K i ( ω ) and phase shift φ i ( ω ) for the selected harmonic of the signal can be described in the following way:
K i ω = G i j ω = G i j ω 2 + G i j ω 2 , φ i ω = arctan G i j ω G i j ω .
The transmittance of the object being discussed will impact the error signal components in a manner that alters their amplitude and phase.

2.2. Algorithm Transmittance Impact on Error Signals

Assume that the signal x ( t ) , processed by the analyzed WT algorithm, can be described in an ideal case as follows:
x ˙ i = j = 0 E x , o ω j sin ω j i T s + φ x , o ω j ,
where T s = 1 f s is the sampling period corresponding to sampling frequency f s , E x , o ( ω ) is the amplitude, and φ x , o ( ω ) is the phase shift of the signal harmonic of pulsation ω . In the real case, the quantity x ( i ) can be described as follows:
x ˜ i = x ˙ i + e x , r i + j = 0 E x , e ω j sin i T s ω j + φ x , e ω j ,
where e x , r ( i ) is random error (non-deterministic), E x , e ( ω ) is the amplitude, and φ x , e ( ω ) is the phase shift of the deterministic error.
According to Equation (3), it is possible to define static error signal e x , s ( i ) (for which subsequent values do not change for a single WT algorithm run) as follows:
e x , s i = E x , e 0 sin φ x , e 0 ,
where in case of φ x , e ( 0 ) = π   rad , the equation in question can be written as e x , s ( i ) = E x , e ( 0 ) . In case of harmonics with non-zero pulsation, the dynamic error signal e x , d ( i ) can be defined as follows:
e x , d i = j = 1 E x , e ω j sin i T s ω j + φ x , e ω j .
The random error signal e x , r ( i ) cannot be described in a deterministic form, but statistical parameters such as variance, expected value, and the shape of the probability density function can describe its properties.
According to [5,23,24], a single row of the transmission matrix, as indicated in Equation (1), and the related transmittance described in Equation (2), can be analyzed in a manner analogous to a finite impulse response (FIR) filter [25]. For each output quantity, it is possible to analyze how the algorithm introduces error signals present at its input to this quantity. It should also be noted that in the case of the discussed family of algorithms, the transfer function associated with the selected quantity is linear and time invariant. Therefore, the deterministic error component of the input quantity, as described in Equation (3), is transferred to the i-th output of the WT algorithm according to the following relationship:
e X , s , i j = K i 0 E x , e 0 sin φ x , e 0 + φ i 0 , e x , d , i j = k = 1 K i ω k E x , e ω k sin j T s ω k + φ x , e ω k + φ i ω k .
The discussed transmittance also affects the variance of the analyzed error signals. In the case of both deterministic and random signals, the following relationship can be written [23,26]:
σ X , i 2 ω = K i 2 ω σ x 2 ω = σ x 2 ω H i e j ω T s 2 ,
where for analyzed error signal σ x 2 is the variance in the WT algorithm input, and σ X , i 2 is the variance in the i-th WT algorithm output. Given the above equation, the single harmonic variance of the dynamic error signal e X , d , i ( j ) in the algorithm output can be determined according to the relationship [24]
σ X , d , i 2 ω = 1 2 E x , e 2 ω H i e j ω T s 2 .
In the case of static error signals, the presented equation simplifies (for ω = 0   rad/s , it becomes e j ω T s = 1 ), so it can be written as follows:
σ X , s , i 2 = H i 1 2 σ x , s 2 = σ x , s 2 j = 0 N 1 a i , j 2 .
In the case of random error signals, it can be observed that the algorithm in question processes N subsequent realizations of these signals. If these realizations are uncorrelated with each other, or the autocorrelation mentioned is small, and the assumption of the same power spectral density of these signals in the frequency range f ^ [ 0 ;   1 2 f s ] holds, the variance of the random error signal at the algorithm’s output can be described by the following equation:
σ X , r , i 2 = a i , 0 2 σ x , r 2 + a i , 1 2 σ x , r 2 + + a i , N 1 2 σ x , r 2 = σ x , r 2 j = 0 N 1 a i , j 2 .
If the specified conditions are not satisfied for the analyzed signal, its variance should be calculated using Equation (4). In this scenario, it is also feasible to calculate the average variance of the analyzed random error signal:
σ X , r , i 2 = 1 π 0 π σ x , r 2 ω n T s H i e j ω n 2 d ω n ,
where ω n = ω T s is the normalized pulsation [24]. Note that Equations (6) and (7) are equivalent when the e x , r ( i ) signal has a constant power spectral density (in case where σ x , r 2 ( ω ) = const ), which occurs, i.e., in case of white noise or in case of a quantization error signal [27,28,29,30]. In the case of non-constant power spectral density, only Equations (4) and (7) can be used to calculate the analyzed signal variance correctly.

2.3. Identification of Algorithm Transmittance

The determination of the algorithm’s transmittance concerning the subsequent output quantities can be carried out using Equation (2) or by understanding the properties of the wavelet utilized by the analyzed algorithm. This process can also be executed for an existing implementation of the algorithm (e.g., implemented in MATLAB [31], GNU Octave [32], or the PyWavelets package [33]), employing a suitable identification algorithm [18]. Since the mentioned identification algorithm has been utilized in previous studies [16,22], and its application is straightforward, the analytical approach will be elaborated below. The illustration pertains to the “Daubechies” [21] wavelet family, assuming that the WT algorithm will process N = 8 input quantities to produce M = 8 output quantities, utilizing the “db2” wavelet and undergoing K = 2 iterations of the signal decomposition process.
In the case under analysis, the vector of input quantities, previously mentioned in Equation (1), can be represented as [5]
X T = S 2 , 0 S 2 , 1 T 2 , 0 T 2 , 1 T 1 , 0 T 1 , 1 T 1 , 2 T 1 , 3 ,
where the symbol S m , n denotes the approximations, and the symbol T m , n denotes the details of the signal for the scale number m and the time shift number n, while the vector of output quantities can be described in the form
x T = S 0 , 0 S 0 , 1 S 0 , 2 S 0 , 3 S 0 , 4 S 0 , 5 S 0 , 6 S 0 , 7 .
The signal decomposition process, enabling the calculation of the values of the quantities referenced in Equation (8) from the values of the quantities specified in Equation (9), can be recursively defined using the equations outlined in [5]:
S m + 1 , n = 1 2 k = 0 N k 1 c k S m , 2 n + k ,
T m + 1 , n = 1 2 k = 0 N k 1 b k S m , 2 n + k .
where the symbol c k represents consecutive non-zero scaling factors, which will be elaborated on later in this paper, while the symbol b k signifies the coefficients computed in accordance with the following equation:
b k = 1 k c N k k 1 ,
where N k is the number of non-zero scaling factors resulting from the properties of the wavelet used.
According to Equations (10) and (11), to determine the values of the quantities outlined in Equation (8), one must have knowledge of the number and values of consecutive scaling factors. In considering the assumptions regarding the analyzed wavelet “db2”, this wavelet possesses N k = 4 non-zero scaling factors: c 0 , c 1 , c 2 , and c 3 [5,21]. Furthermore, it is characterized by the following assumptions [5,21]:
k = 0 N k 1 c k = 2 ,
k = 0 N k 1 1 k c k k m = 0 ,
k = 0 N k 1 c k c k + 2 k = 2 where   k = 0 0 in   other   cases ,
where in Equation (14), m [ 0 ;   N k 2 1 ] , and in Equation (15), k N . Based on the above assumptions, the system of equations can be written as follows:
c 0 + c 1 + c 2 + c 3 = 2 according   to ( 13 ) c 0 c 1 + c 2 c 3 = 0 according   to ( 14 )   for   m = 0 1 c 1 + 2 c 2 3 c 3 = 0 according   to ( 14 )   for   m = 1 c 0 2 + c 1 2 + c 2 2 + c 3 2 = 2 according   to ( 15 ) ,
and solving this system allows the values of the analyzed scaling factors to be determined:
c 0 = 1 + 3 4 ,   c 1 = 3 + 3 4 ,   c 2 = 3 3 4 ,   c 3 = 1 3 4 .
Based on Equations (10) and (11), relationships describing the output values of the analyzed algorithm, indicated in Equation (8), are obtained:
S 2 , 0 = 1 2 c 0 S 1 , 0 + c 1 S 1 , 1 + c 2 S 1 , 2 + c 3 S 1 , 3 = 1 2 c 0 2 c 0 S 0 , 0 + c 1 S 0 , 1 + c 2 S 0 , 2 + c 3 S 0 , 3 + 1 2 c 1 2 c 0 S 0 , 2 + c 1 S 0 , 3 + c 2 S 0 , 4 + c 3 S 0 , 5 + 1 2 c 2 2 c 0 S 0 , 4 + c 1 S 0 , 5 + c 2 S 0 , 6 + c 3 S 0 , 7 + 1 2 c 3 2 c 0 S 0 , 6 + c 1 S 0 , 7 + c 2 S 0 , 0 + c 3 S 0 , 1 ,
S 2 , 1 = 1 2 c 0 S 1 , 2 + c 1 S 1 , 3 + c 2 S 1 , 4 + c 3 S 1 , 5 = 1 2 c 0 2 c 0 S 0 , 4 + c 1 S 0 , 5 + c 2 S 0 , 6 + c 3 S 0 , 7 + 1 2 c 1 2 c 0 S 0 , 6 + c 1 S 0 , 7 + c 2 S 0 , 0 + c 3 S 0 , 1 + 1 2 c 2 2 c 0 S 0 , 0 + c 1 S 0 , 1 + c 2 S 0 , 2 + c 3 S 0 , 3 + 1 2 c 3 2 c 0 S 0 , 2 + c 1 S 0 , 3 + c 2 S 0 , 4 + c 3 S 0 , 5 ,
T 2 , 0 = 1 2 c 3 S 1 , 0 c 2 S 1 , 1 + c 1 S 1 , 2 c 0 S 1 , 3 = 1 2 c 3 2 c 0 S 0 , 0 + c 1 S 0 , 1 + c 2 S 0 , 2 + c 3 S 0 , 3 1 2 c 2 2 c 0 S 0 , 2 + c 1 S 0 , 3 + c 2 S 0 , 4 + c 3 S 0 , 5 + 1 2 c 1 2 c 0 S 0 , 4 + c 1 S 0 , 5 + c 2 S 0 , 6 + c 3 S 0 , 7 1 2 c 0 2 c 0 S 0 , 6 + c 1 S 0 , 7 + c 2 S 0 , 0 + c 3 S 0 , 1 ,
T 2 , 1 = 1 2 c 3 S 1 , 2 c 2 S 1 , 3 + c 1 S 1 , 4 c 0 S 1 , 5 = 1 2 c 3 2 c 0 S 0 , 4 + c 1 S 0 , 5 + c 2 S 0 , 6 + c 3 S 0 , 7 1 2 c 2 2 c 0 S 0 , 6 + c 1 S 0 , 7 + c 2 S 0 , 0 + c 3 S 0 , 1 + 1 2 c 1 2 c 0 S 0 , 0 + c 1 S 0 , 1 + c 2 S 0 , 2 + c 3 S 0 , 3 1 2 c 0 2 c 0 S 0 , 2 + c 1 S 0 , 3 + c 2 S 0 , 4 + c 3 S 0 , 5 ,
T 1 , 0 = 1 2 c 3 S 0 , 0 c 2 S 0 , 1 + c 1 S 0 , 2 c 0 S 0 , 3 ,
T 1 , 1 = 1 2 c 3 S 0 , 2 c 2 S 0 , 3 + c 1 S 0 , 4 c 0 S 0 , 5 ,
T 1 , 2 = 1 2 c 3 S 0 , 4 c 2 S 0 , 5 + c 1 S 0 , 6 c 0 S 0 , 7 ,
T 1 , 3 = 1 2 c 3 S 0 , 6 c 2 S 0 , 7 + c 1 S 0 , 0 c 0 S 0 , 1 .
With Equation (1) and taking into account the order of the elements of the vector of the output quantities consistent with that assumed in Equation (8) and substituting on the basis of Equation (9) S 0 , i = x ( i ) = x i , we have
S 2 , 0 = a 0 , 0 x 0 + a 0 , 1 x 1 + a 0 , 2 x 2 + a 0 , 3 x 3 + a 0 , 4 x 4 + a 0 , 5 x 5 + a 0 , 6 x 6 + a 0 , 7 x 7 ,
S 2 , 1 = a 1 , 0 x 0 + a 1 , 1 x 1 + a 1 , 2 x 2 + a 1 , 3 x 3 + a 1 , 4 x 4 + a 1 , 5 x 5 + a 1 , 6 x 6 + a 1 , 7 x 7 ,
T 2 , 0 = a 2 , 0 x 0 + a 2 , 1 x 1 + a 2 , 2 x 2 + a 2 , 3 x 3 + a 2 , 4 x 4 + a 2 , 5 x 5 + a 2 , 6 x 6 + a 2 , 7 x 7 ,
T 2 , 1 = a 3 , 0 x 0 + a 3 , 1 x 1 + a 3 , 2 x 2 + a 3 , 3 x 3 + a 3 , 4 x 4 + a 3 , 5 x 5 + a 3 , 6 x 6 + a 3 , 7 x 7 ,
T 1 , 0 = a 4 , 0 x 0 + a 4 , 1 x 1 + a 4 , 2 x 2 + a 4 , 3 x 3 + a 4 , 4 x 4 + a 4 , 5 x 5 + a 4 , 6 x 6 + a 4 , 7 x 7 ,
T 1 , 1 = a 5 , 0 x 0 + a 5 , 1 x 1 + a 5 , 2 x 2 + a 5 , 3 x 3 + a 5 , 4 x 4 + a 5 , 5 x 5 + a 5 , 6 x 6 + a 5 , 7 x 7 ,
T 1 , 2 = a 6 , 0 x 0 + a 6 , 1 x 1 + a 6 , 2 x 2 + a 6 , 3 x 3 + a 6 , 4 x 4 + a 6 , 5 x 5 + a 6 , 6 x 6 + a 6 , 7 x 7 ,
T 1 , 3 = a 7 , 0 x 0 + a 7 , 1 x 1 + a 7 , 2 x 2 + a 7 , 3 x 3 + a 7 , 4 x 4 + a 7 , 5 x 5 + a 7 , 6 x 6 + a 7 , 7 x 7 ,
Therefore, based on the relationships indicated so far, the transformation matrix A described in Equation (1), which is appropriate for the analyzed WT algorithm, takes the form
A = 5 3 16 5 + 3 16 3 + 3 3 16 5 + 3 3 16 3 + 3 16 3 3 16 5 3 3 16 3 3 3 16 3 + 3 16 3 3 16 5 3 3 16 3 3 3 16 5 3 16 5 + 3 16 3 + 3 3 16 5 + 3 3 16 1 + 3 16 1 3 16 3 3 3 16 1 + 3 16 3 5 3 16 3 + 5 3 16 1 3 16 3 + 3 3 16 3 5 3 16 3 + 5 3 16 1 3 16 3 + 3 3 16 1 + 3 16 1 3 16 3 3 3 16 1 + 3 16 1 3 4 2 3 3 4 2 3 + 3 4 2 1 + 3 4 2 0 0 0 0 0 0 1 3 4 2 3 3 4 2 3 + 3 4 2 1 + 3 4 2 0 0 0 0 0 0 1 3 4 2 3 3 4 2 3 + 3 4 2 1 + 3 4 2 3 + 3 4 2 1 + 3 4 2 0 0 0 0 1 3 4 2 3 3 4 2 .
Knowing the values of the subsequent transformation coefficients a i , j allows us, in accordance with Equation (2), to determine the transfer functions related to the subsequent output quantities of the analyzed algorithm. A certain regularity can be noticed here—the transmittances related to the output quantities with the same scale number will be identical, regardless of the time shift number (this applies separately to details and signal approximation). Hence,
H S m , n z = H S m , n z ,
H T m , n z = H T m , n z ,
for n N . This property significantly simplifies the analysis of the metrological characteristics of WT algorithms, especially considering that the quantity of output values generated by these algorithms typically exceeds the number of scales analyzed, stemming from the iterations in the input signal decomposition process [3,16].
It is essential to highlight that the analysis presented can also be conducted for other wavelet families, varying numbers of decomposition process iterations, and different quantities of algorithm input. In instances involving wavelet families with explicitly defined mother wavelet equations (instead of utilizing appropriate relations as shown in the example), it becomes feasible to determine the algorithm’s transfer function through suitable transformations [26]. Nonetheless, the connection between the algorithm’s transfer function and the transformation matrix coefficient values is consistently described by Equation (2).
Another scenario that warrants discussion is when adjustments can be made to the transformation matrix coefficients. This situation may involve modifications such as the incorporation of an additional window function w ( n ) , where the algorithm’s output values are determined based on the following relationship:
X i = a i , 0 w 0 x 0 + a i , 1 w 1 x 1 + + a i , N 1 w N 1 x N 1 .
In the discussed case, the coefficients of the transformation matrix of the algorithm are modified according to the equation
a i , j = w j a i , j ,
where a i , j is the new value of the transformation coefficient a i , j . In this case, a different transfer function is associated with each output quantity, and Equations (34) and (35) are no longer valid.

3. Own Errors of the Wavelet Transform Algorithm

In analyzing the values of the subsequent coefficients of the transformation matrix given in Equation (33), it can be noticed that most of the coefficients are irrational. Based on the analysis of Equation (1), it can be noticed that in order to determine a single value for the implementation of the selected output quantity of this algorithm, it is necessary to perform N multiplications and N additions. These calculations are most often performed by a microprocessor and are therefore associated with errors related to the limited precision of real numbers [34]. It can therefore be noticed that, in addition to processing error signals present in the algorithm’s input quantities, this algorithm will introduce its own errors resulting from the presented phenomena into the output quantities.
In order to determine the parameters of the own error signal e X , z , i ( j ) for the subsequent output values of the algorithm, it is proposed to perform an appropriate experiment using the Monte-Carlo method [35]. During the experiment, random values of input quantities from the range of values that the algorithm processes in real conditions will be provided as input for the actual implementation of the algorithm. Simultaneously, with the result X ˜ i ( j ) for the real algorithm, the result X ˙ i ( j ) should be determined in the case of the ideal algorithm, implemented according to Equation (1). In assuming that the input quantities x ( i ) of the algorithm are not subject to any error signal (i.e., x ˜ ( i ) = x ˙ ( i ) ), the error signal e X , z , i ( j ) can be defined as follows:
e X , z , i j = X ˜ i j X ˙ i j .
Based on the values of the subsequent realizations of the error signal e X , z , i ( j ) , its variances, expected value, and associated expanded uncertainty for a given confidence level can be determined. Unfortunately, it is actually impossible to carry out the presented experiment. The process of determining the value of the realization of the quantity X ˙ i ( j ) in the case of an ideal algorithm must also be carried out using a microprocessor, and this, therefore, also introduces errors related to the phenomena discussed earlier in this quantity. However, it is proposed to estimate the parameters of the error signal e X , z , i ( j ) by carrying out the process of determining the value of X ˙ i ( j ) using numbers with much greater precision than in the case of the value X ˜ i ( j ) . Since modern microcontrollers usually use real numbers with word lengths of 16 or 32 bits [36,37], the values of X ˙ i ( j ) may be determined using a word length of 128 bits [34,38].
The discussed experiment was performed for the algorithm described in the previous section, for which its values for the transformation matrix coefficients are presented in Equation (33). In each experiment, 100,000 random values of the x ( i ) signal realization from the selected range were fed as input to the algorithm. Then, based on Equation (38), subsequent realizations of the algorithm’s own error signal were determined. The obtained results allowed for the estimation of the variance, expanded uncertainty, and expansion coefficient for the analyzed cases. The experiment was conducted for an implementation of the algorithm using 16- and 32-bit floating-point numbers. The algorithm was implemented in C using the GNU GCC [38] compiler to generate the machine code. This compiler is also utilized for the “ARM” and “AVR” platforms [37,38,39]. The experimental results are summarized in Table 1 and Table 2. Based on the results obtained, the expansion coefficient for the distributions of the analyzed signals was estimated to be c z = 2.15 on average.
In analyzing the results presented in Table 1 and Table 2, several of the most important relationships can be noticed. The value of the variance of the self-error signal has the following characteristics:
  • It depends on the number of arithmetic operations performed on non-zero coefficients of the transformation matrix and increases with the number of these operations;
  • It depends on the range of possible implementation values of the algorithm’s input quantities and increases as this range is extended;
  • It depends on the length of the word used by the algorithm and decreases as this length increases.
Therefore, from the perspective of the measuring chain design, this value will rely on the number of the input quantities of the WT algorithm, the iterations of the signal decomposition process, and the order and type of the mother wavelet used. It is also noticeable that for the same stage of signal decomposition, the error signal parameters are nearly identical for each output quantity. Hence, for each algorithm implementation, the parameters of the self-error signals should be determined for the subsequent decomposition stages. The experiment conditions should closely resemble the actual operational conditions of the analyzed algorithm.

4. Method for Determining the Resultant Expanded Uncertainty

In many cases, merely knowing the value of the standard uncertainty parameter or the error signal variance may not suffice [40]. The most universal method used to determine the resulting expanded uncertainty value in a general situation is the Monte-Carlo method. However, this approach necessitates numerous iterations to obtain the final value of the analyzed error signal and may not be suitable for the real-time evaluation of the metrological properties of the measurement chain due to the time required to repeat the experiment.
An alternative to the Monte-Carlo method could be an analytical method, such as the propagation of distribution functions method described in sources like [41] or the extended rule of the combination of uncertainties method outlined in [42]. However, these methods are intricate, and their application to the error model proposed in this study might be less effective compared to the reduction interval arithmetic method, as discussed in works like [43,44,45]. Another alternative could be a method based on fuzzy logic, as detailed in [46].
Due to the advantages of the interval arithmetic reduction method, such as its simplicity of application, its ability to determine new values of the resulting expanded uncertainty when the error model parameters change without the need for a Monte-Carlo experiment, and its low computational complexity, the reduction interval arithmetic method was employed to ascertain the resulting value of the expanded uncertainty in this study.
According to the method of reduction interval arithmetic, the expanded uncertainty in case of an error signal e Σ ( t ) = e 0 + + e N 1 can be determined according to the following relation [43,44]:
U Σ = U 0 U 1 U N 1 T 1 h 0 , 1 h 0 , N 1 h 1 , 0 1 h 1 , N 1 h N 1 , 0 1 U 0 U 1 U N 1 ,
in which the successive values of the expanded uncertainties U i for the analyzed component e i ( t ) of the error signal e Σ ( t ) are determined according to the relation [40]
U i = c i σ i ,
where c i is the coverage factor for the i-th e Σ ( t ) signal component. The successive coherence coefficients h i , j are determined according to the following equation [43]:
h i , j = h j , i = s i , j U i 2 + U j 2 k = 0 N 1 U k 2 ,
where symbol s i , j denotes the shape factor, which is determined for a pair of signals e a ( t ) and e b ( t ) has a specific distribution shape of the following form [43]:
s a , b = s b , a = U a , b 2 U a 2 U b 2 2 U a U b = U a , b 2 2 U 2 1 ,
assuming that signals e a ( t ) and e b ( t ) are uncorrelated and have the same value of expanded uncertainty U a = U b for the same confidence level 1 α [40].
The coherence coefficients h i , j determined consider the relationships between the shapes of the provided error distributions and their correlations, incorporating corrections arising from the central limit theorem [40]. The shape factor coefficients s i , j need to be computed only once, which can be achieved through a simulation experiment (Monte-Carlo method) or analytically. Various works such as [43,44] describe the process of calculating these coefficients in different manners. Table 3 displays values for typical scenarios at a 95% confidence level for 1 α .

5. Application of the Proposed Analysis Method

The effectiveness of the proposed analysis method was verified using the measurement chain detailed in a previous study [19]. This measurement chain processes a time-varying voltage signal s ( t ) , with realization values falling within the range s ^ ( t ) [ 0 ;   1 ] V on discrete representations of x ( i ) of this magnitude, where x ( i ) = s ( i T s ) , and f s = 1 T s = 48   kHZ denotes the sampling period. In a single measurement series, with N = 8 , consecutive samples of quantities x ( i ) are inputted into the WT algorithm described in the previous section, leading to the determination of a vector M = 8 of output quantities X ( j ) . The algorithm’s implementation utilizes floating-point numbers with a word length of 32 bits.
The metrological properties of the section of the measurement chain responsible for converting the quantity s ( t ) into x ( i ) were previously discussed in [19]. The uncertainty budget related to x ( i ) encompasses the random error signal e x , r ( i ) and the dynamic error signal e x , d ( i ) . For the random error signal e x , r ( i ) , the variance is σ x , r 2 = 0.13   μ V , and the realization values of this signal are distributed close to normal. Hence, for a confidence level of 1 α = 95 % , the coverage factor c x , r = c n = 1.96 , and the expanded uncertainty is U x , r = 0.71   mV .
Regarding the dynamic error signal e x , d ( i ) , its characteristics are influenced by the spectrum of the processed signal s ( t ) . If this signal is a sinusoidally varying signal with pulsation ω s , o and amplitude E s , o , the following conditions apply [19]:
σ x , d , s i n 2 = E s , o cos φ ˜ y ω s , o E s , o 2 + E s , o sin φ ˜ y ω s , o 2 2 ,
however, if the signal is a triangular signal with the given parameters, then [19]:
σ x , d , t r i 2 = i = 1 σ x , d , t r i , i 2 ,
σ x , d , t r i , i 2 = E s , o , i cos φ ˜ y ω s , o , i E s , o , i 2 + E s , o , i sin φ ˜ y ω s , o , i 2 2 ,
E s , o , i = π 8 2 i 1 2 E s , o ,
where in Equation (41), only those harmonics of the signal s ( t ) for which k f s , o 1 2 f s holds are taken into account, where k = ( 2 i 1 ) . The introduced phase shift φ ˜ y , which is the origin of the dynamic error signal, is estimated according to the relationship [19]
φ ˜ y ω 6.26 × 10 13 ω 2 5.73 × 10 7 ω .
As the ambient conditions did not change during the experiments, it is assumed that the static error signal e x , s ( i ) does not occur.
In considering the aforementioned relationships, in the scenario of a sinusoidally varying signal s ( t ) , the resulting error signal e x , Σ , s i n ( i ) will comprise the signal e x , r ( i ) and the signal e x , d , s i n ( i ) consisting of a single harmonic with pulsation ω s , o . In the instance of a triangular signal, the error signal e x , Σ , t r i ( i ) will also encompass a random error component e x , r ( i ) , and depending on the signal’s pulsation s ( t ) , it will include a specific number of harmonics of the random error signal e x , d , t r i ( i ) , where the i-th harmonic is characterized by a pulsation of ω x , e , i = ( 2 i 1 ) ω s , o .
These error signals discussed will be propagated to the algorithm output as per Equation (1). The parameters at the algorithm output can be determined for subsequent output quantities following Equation (6) for the random error signals and Equation (5) for the successive harmonics of the resultant dynamic error signal. Moreover, in the scenarios discussed, the WT algorithm will introduce its own error signals e X , z , i ( j ) to the output values, linked to the previously mentioned roundings.
The vector of expanded uncertainties related to the resultant error signal for subsequent output quantities of the algorithm, as required in Equation (39), can thus be delineated as
U , s i n = U , z U , r U , d , s i n ,
in the case of a sinusoidal signal, and in the case of a triangular signal, in the following form:
U , t r i = U , z U , r U , d , t r i , 1 U , d , t r i , 2 U , d , t r i , N .
The symbol “∗” represents the output quantity number, assigned following the symbols introduced earlier in Equation (8). Based on the previously addressed characteristics of the WT algorithm, for random error signals, the uncertainty linked to the propagation of these signals to the WT algorithm’s output can be calculated using the following relationship:
U , r = c n σ x , r j = 0 N 1 a , j 2 ,
resulting from Equation (6), while in the case of the subsequent harmonics of the resultant dynamic error signal,
U , d ω = c d σ x , d ω H e j ω T s = c d 1 2 E x , e ω H e j ω T s ,
which results from Equation (5). The resulting expanded uncertainty U , Σ related to the subsequent output quantities can be determined according to Equation (39), with the values of the coherence coefficients estimated based on relationship (40). For the confidence level 1 α = 95 % c n = 1.96 and c d = 1.41 [40], c z = 2.15 .
To validate the indicated relationships, a Monte-Carlo measurement experiment was conducted, gathering 30,000 values of the X ( j ) signal realization each time. Throughout the experiment, the signal source s ( t ) originated from the RIGOL DG1011 arbitrary waveform generator [47]. The initial phase of this signal was randomized within the interval [ π ;   π ] , which was determined using the generator’s synchronizing output. The signal’s frequency s ( t ) ranged from f ^ s , o [ 1 ;   20 ] kHz for a monoharmonic signal and from f ^ s , o [ 1 ;   5 ] kHz for a polyharmonic signal. The signal parameters remained constant at D s , o = 0.5 V and E s , o = 0.475 V .
Based on the collected values of the X ( j ) quantity realization, we have the following the equation:
e , Σ ( j ) = X ˜ j X ˙ j ,
The error signal values e , Σ ( j ) were determined, and their variances were calculated along with the expanded uncertainty. The measured expanded uncertainty value U m was compared with the value U c determined using Equation (39), and the relative error in estimating this value was computed. The outcomes for specific values of signal s ( t ) pulsation are outlined in Table 4 and Table 5.
For example, in the case of a monoharmonic signal with a frequency f s , o = ω s , o 2 π = 5   kHz for the output quantity T 2 , 1 , the following occurs:
U T 2 , 1 , z = c z σ T 2 , 1 = 2.15 · 3.73 × 10 8 = 8.02 × 10 5   mV , U T 2 , 1 , r = c n σ x , r j = 0 N 1 a T 2 , 1 , j 2 = 1.96 · 0.36 × 10 4 · 1.0 = 0.70   mV , U T 2 , 1 , d , s i n = c d σ x , d , s i n ω s , o H T 2 , 1 e j ω s , o T s = 1.41 · 6.31 × 10 4 · 1.59 = 14.09   mV , U T 2 , 1 , s i n = U T 2 , 1 , z U T 2 , 1 , r U T 2 , 1 , d , s i n = 8.02 × 10 8 0.70 × 10 3 14.09 × 10 3 V , U T 2 , 1 , Σ = 8.02 × 10 8 0.70 × 10 3 14.09 × 10 3 T 1.000 0.000 0.197 0.000 1.000 0.534 0.197 0.534 1.000 8.02 × 10 8 0.70 × 10 3 14.09 × 10 3 = 14.48   mV ,
and for the indicated case, 14.13 mV was measured. Expanded uncertainty values can be determined similarly in other cases, but due to the large number of components of the indicated equations, further examples were not published in this paper.

6. Conclusions

The expanded uncertainty values determined for a monoharmonic signal for subsequent output values of the measurement chain consistently aligned with those obtained experimentally. The typical deviation between the actual and estimated expanded uncertainty fell within the range of ±5%. However, in the case of a polyharmonic signal, the resultant expanded uncertainty values were determined with a larger margin of error. This discrepancy is primarily due to the imprecise determination of the error model parameter of the analyzed measurement chain. These parameters were established in a previous study [19], incorporating several simplifications to ensure that the presented analysis example maintained a minimal level of complexity.
Upon analyzing the instances of a polyharmonic signal where there is a notable disparity between the estimated and measured expanded uncertainty values, a specific pattern emerges. Each output quantity of the algorithm corresponds to a particular transmittance, which effectively dampens or enhances error signals with a specific spectrum. Consequently, if there is an inaccurate estimation of the parameter of a particular error signal, especially if this signal emerges as the predominant signal in the algorithm’s output, the estimation will be erroneous.
This observation highlights a crucial insight—even with highly accurate estimations of the resultant error signal parameters of the input quantities of the WT algorithm, there remains a possibility that the parameters of the error signal at the algorithm’s output are inaccurately estimated. The dominant error signal (with accurately determined parameters) could be suppressed, while the less significant signal (with imprecisely determined parameters) could undergo significant amplification.
It can be seen that the transfer function of the WT algorithm can be determined in two ways. The first method, described in [16,17,18], is the most accessible to the designer of the measurement track and does not require any knowledge about the algorithm used; however, its use requires a ready implementation of this algorithm. The second method, presented in this paper, requires knowledge of the assumptions of the wavelet family used and their transformation to the form described in Equation (2), by following the steps below:
  • Indicate the form of the vector of the output quantities based on the number of input quantities, the type of wavelet, and the number of iterations of the signal decomposition process (as shown in Equations (8) and (9) in the case of the analyzed example).
  • Determine the values of the scaling factors based on the assumptions of the selected family and the order of the selected mother wavelet (as shown in Equations (13)–(16) in the case of the analyzed example).
  • Determine the equations describing the output quantities indicated in step 1, based on Equations (10) and (11) and substitute the values determined in step 2 into them (as shown in Equations (17)–(32) in the case of the analyzed example).
This procedure is much more complex due to the necessary calculations, but it does not require the implementation of the algorithm used.
It should be noted that the use of the interval arithmetic reduction method to estimate the resulting expanded uncertainty value comes down to the following:
  • Determining the value of the vector of partial uncertainties;
  • Determining the values of the coherence coefficients;
  • The application of Equation (39) for the obtained data.
This implies that in the event of a change in the error model parameter (e.g., alterations in the spectrum of the processed signal, the emergence of an additional error signal, a modification in the parameters of existing error signals), there is no need to conduct Monte-Carlo simulations or any other intricate procedures to ascertain the current resulting value of the expanded uncertainty. The sole task that requires additional effort is determining the values of shape coefficients, which occurs once during the analysis preparation stage. However, this feature indicates that the obtained results may be inaccurate if the analyzed error signals exhibit a realization distribution shape different from the one assumed in the calculations.
In conclusion, the proposed analysis method and the previously suggested error model can be deemed suitable. It is essential to highlight that the accuracy of the proposed analysis method hinges on the precision of determining the parameters of the proposed error model. The authors of this article anticipate that the proposed method will be beneficial for the designers of measurement chains utilizing WT algorithms or other types of linear measurement data processing algorithms.

Author Contributions

Methodology, M.K.; software, Ł.D.; validation, M.K. and J.R.; formal analysis, M.K.; investigation, Ł.D.; resources, Ł.D.; data curation, Ł.D.; writing—original draft, Ł.D.; writing—review and editing, M.K. and J.R.; visualization, Ł.D.; supervision, J.R.; project administration, M.K. All authors have read and agreed to the published version of the manuscript.

Funding

This research was partially funded by the Polish National Science Centre (NCN), grant number 2022/47/B/ST7/00047, and by the Rector of Silesian University of Technology, grant number 05/020/RGJ24/0084.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The raw data supporting the conclusions of this article 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:
ARMAdvanced RISC Machine;
AVRAdvanced Virtual RISC;
FIRFinite impulse response;
WTWavelet transform.

References

  1. Unser, M.; Aldroubi, A. A review of wavelets in biomedical applications. Proc. IEEE 1996, 84, 626–638. [Google Scholar] [CrossRef]
  2. Ahmad, K.A. Wavelet Packets and Their Statistical Applications; Springer: Singapore, 2018. [Google Scholar]
  3. Lord, G.J.; Pardo-Igúzquiza, E.; Smith, I.M. A Practical Guide to Wavelets for Metrology; National Physical Laboratory: Teddington, UK, 2000. [Google Scholar]
  4. Akujuobi, C.M. Wavelets and Wavelet Transform Systems and Their Applications; Springer: Berlin/Heidelberg, Germany, 2022. [Google Scholar]
  5. 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]
  6. Hasan, O. Automatic detection of epileptic seizures in EEG using discrete wavelet transform and approximate entropy. Expert Syst. Appl. 2009, 36, 2027–2036. [Google Scholar] [CrossRef]
  7. Reddy, B.E.; Narayana, K.V. A lossless image compression using traditional and lifting based wavelets. Signal Image Process. 2012, 3, 213. [Google Scholar] [CrossRef]
  8. Yan, R.; Gao, R.X.; Chen, X. Wavelets for fault diagnosis of rotary machines: A review with applications. Signal Process. 2014, 96, 1–15. [Google Scholar] [CrossRef]
  9. An, P. Application of multi-wavelet seismic trace decomposition and reconstruction to seismic data interpretation and reservoir characterization. In SEG Technical Program Expanded Abstracts; Society of Exploration Geophysicists: Tulsa, OK, USA, 2006; pp. 973–977. [Google Scholar] [CrossRef]
  10. Xie, Y.; Yu, Y.; Li, L. Discrete Wavelet Transform-Based Metal Material Analysis Model by Constant Phase Angle Pulse Eddy Current Method. Appl. Sci. 2023, 13, 3207. [Google Scholar] [CrossRef]
  11. Siddique, M.F.; Ahmad, Z.; Ullah, N.; Kim, J. A Hybrid Deep Learning Approach: Integrating Short-Time Fourier Transform and Continuous Wavelet Transform for Improved Pipeline Leak Detection. Sensors 2023, 23, 8079. [Google Scholar] [CrossRef]
  12. Yan, B.F.; Miyamoto, A.; Brühwiler, E. Wavelet transform-based modal parameter identification considering uncertainty. J. Sound Vib. 2006, 291, 285–301. [Google Scholar] [CrossRef]
  13. Wilczok, E. New uncertainty principles for the continuous Gabor transform and the continuous wavelet transform. Doc. Math. 2000, 5, 201–226. [Google Scholar] [CrossRef]
  14. Peretto, L.; Sasdelli, R.; Tinarelli, R. On uncertainty in wavelet-based signal analysis. IEEE Trans. Instrum. Meas. 2005, 54, 1593–1599. [Google Scholar] [CrossRef]
  15. Sarrafi, A.; Mao, Z.; Shiao, M. Uncertainty quantification framework for wavelet transformation of noise-contaminated signals. Measurement 2019, 137, 102–115. [Google Scholar] [CrossRef]
  16. Dróźdź, L.; Roj, J. Propagation of Random Errors by the Discrete Wavelet Transform Algorithm. Electronics 2021, 10, 764. [Google Scholar] [CrossRef]
  17. Jakubiec, J. The error based model of a single measurement result in uncertainty calculation of the mean value of series. In Proceedings of the Problems and Progress in Metrology: PPM’15, Koscielisko, Poland, 7–10 June 2015; Volume 20, pp. 75–78. [Google Scholar]
  18. Topór-Kaminski, T.; Jakubiec, J. Uncertainty modelling method of data series processing algorithms. In Proceedings of the 10th International 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]
  19. Dróźdź, L.; Kampik, M.; Roj, J. Error Model of a Measurement Chain Containing the Discrete Wavelet Transform Algorithm. Appl. Sci. 2024, 14, 3461. [Google Scholar] [CrossRef]
  20. Ruhm, K.H. Deterministic, Nondeterministic Signals; Institute for Dynamic Systems and Control: Zurich, Switzerland, 2008. [Google Scholar]
  21. Vonesch, C.; Blu, T.; Unser, M. Generalized Daubechies Wavelet Families. IEEE Trans. Signal Process. 2007, 55, 4415–4429. [Google Scholar] [CrossRef]
  22. Dróźdź, L.; Roj, J. Influence of the measurement window parameters on the propagation of random errors by the discrete wavelet transformation algorithms. Przegląd Elektrotechniczny 2022, 98, 9–13. [Google Scholar] [CrossRef]
  23. Oppenheim, A.V.; Schafer, R.W. Discrete-Time Signal Processing, 3rd ed.; Pearson: Upper Saddle River, NJ, USA, 2009. [Google Scholar]
  24. Proakis, J.G.; Manolakis, D.G. Digital Signal Processing: Principles, Algorithms and Applications, 5th ed.; Pearson: Upper Saddle River, NJ, USA, 2021. [Google Scholar]
  25. Mehrnia, A.; Willson, A.N. FIR filter design using optimal factoring: A walkthrough and summary of benefits. IEEE Circuits Syst. Mag. 2016, 16, 8–21. [Google Scholar] [CrossRef]
  26. Oppenheim, A.V.; Willsky, A.S.; Nawab, S.H. Signals & Systems, 2nd ed.; Pearson: Upper Saddle River, NJ, USA, 2013. [Google Scholar]
  27. Gray, R.M.; Neuhoff, D.L. Quantization. IEEE Trans. Inf. Theory 1998, 44, 2325–2383. [Google Scholar] [CrossRef]
  28. Widrow, B. Statistical analysis of amplitude-quantized sampled-data systems. Trans. Am. Inst. Electr. Eng. Part II Appl. Ind. 1961, 79, 555–568. [Google Scholar] [CrossRef]
  29. Bibbona, E.; Panfilo, G.; Tavella, P. The Ornstein-Uhlenbeck process as a model of a low pass filtered white noise. Metrologia 2008, 45, 117. [Google Scholar] [CrossRef]
  30. Grimmett, G.; Stirzaker, D. Probability and Random Processes, 4th ed.; Oxford University Press: Oxford, UK, 2020. [Google Scholar]
  31. Misiti, M.; Misiti, Y.; Oppenheim, G.; Poggi, J.M. Wavelet Toolbox; The MathWorks Inc.: Natick, MA, USA, 2018. [Google Scholar]
  32. Průša, Z.; Søndergaard, P.L.; Rajmic, P. Discrete wavelet transforms in the large time-frequency analysis toolbox for MATLAB/GNU Octave. ACM Trans. Math. Softw. (TOMS) 2016, 42, 1–23. [Google Scholar] [CrossRef]
  33. Lee, G.; Gommers, R.; Waselewski, F.; Wohlfahrt, K.; O’Leary, A. PyWavelets: A Python package for wavelet analysis. J. Open Source Softw. 2019, 4, 1237. [Google Scholar] [CrossRef]
  34. Benz, F.; Hildebrandt, F.; Hack, S. A dynamic program analysis to find floating-point accuracy problems. ACM SIGPLAN Not. 2012, 47, 453–462. [Google Scholar] [CrossRef]
  35. Joint Committee for Guides in Metrology. Evaluation of Measurement Data – Propagation of distributions using a Monte Carlo method; JCGM: Pavillon de Breteuil, France, 2008. [Google Scholar]
  36. ARM Limited. Cortex-M4; ARM Limited: Weybridge, UK, 2010. [Google Scholar]
  37. ARM Limited. CMSIS-DSP; ARM Limited: Weybridge, UK, 2023. [Google Scholar]
  38. Stallman, R.M. Using the GNU Compiler Collection; Free Software Foundation: Boston, MA, USA, 2023. [Google Scholar]
  39. Jae-Jin, K.; Seok-Young, L.; Soo-Mook, M.; Suhyun, K. Comparison of LLVM and GCC on the ARM Platform. In Proceedings of the 2010 5th International Conference on Embedded and Multimedia Computing, Cebu, Philippines, 11–13 August 2010; pp. 1–6. [Google Scholar] [CrossRef]
  40. Joint Committee for Guides in Metrology. Evaluation of Measurement Data – Guide to the Expression of Uncertainty in Measurement; JCGM: Pavillon de Breteuil, France, 2008. [Google Scholar]
  41. 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]
  42. 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]
  43. Jakubiec, J. Reductive interval arithmetic application to uncertainty calculation of measurement result burdened correlated errors. Metrol. Meas. Syst. 2003, 10, 137–156. [Google Scholar]
  44. Batko, W.; Pawlik, P. Uncertainty evaluation in modelling of acoustic phenomena with uncertain parameters using interval arithmetic. Acta Phys. Pol. A 2012, 121, A-152–A-155. [Google Scholar] [CrossRef]
  45. Limon, D.; Bravo, J.M.; Alamo, T.; Camacho, E.F. Robust MPC of constrained nonlinear systems based on interval arithmetic. IEE Proc.-Control. Theory Appl. 2005, 152, 325–332. [Google Scholar] [CrossRef]
  46. Urbanski, M.K.; Wąsowski, J. Fuzzy approach to the theory of measurement inexactness. Measurement 2003, 34, 67–74. [Google Scholar] [CrossRef]
  47. RIGOL Technologies Inc. User’s Guide DG1-070518; RIGOL Technologies Inc.: Beijing, China, 2007. [Google Scholar]
Table 1. Summary of the simulation-obtained values of the rounding error signal variance of subsequent output quantities of the discrete wavelet transform algorithm for the wavelet “db2” with two iterations of the decomposition process, for numbers with a length of 16 bits, depending on the range of possible values of the implementation of the input quantities.
Table 1. Summary of the simulation-obtained values of the rounding error signal variance of subsequent output quantities of the discrete wavelet transform algorithm for the wavelet “db2” with two iterations of the decomposition process, for numbers with a length of 16 bits, depending on the range of possible values of the implementation of the input quantities.
QuantityWT Algorithm Input Values Range
[−1; 1][−2; 2][−3; 3][0; 2][0; 4][3; 9]
S 2 , 0 1.03 × 10−74.12 × 10−79.74 × 10−77.08 × 10−72.83 × 10−62.16 × 10−5
S 2 , 1 1.11 × 10−74.43 × 10−71.01 × 10−69.55 × 10−73.82 × 10−62.75 × 10−5
T 2 , 0 1.31 × 10−75.24 × 10−71.21 × 10−62.87 × 10−71.15 × 10−67.06 × 10−6
T 2 , 1 1.07 × 10−74.29 × 10−79.73 × 10−73.36 × 10−71.34 × 10−69.30 × 10−6
T 1 , 0 7.09 × 10−82.85 × 10−76.99 × 10−71.65 × 10−73.56 × 10−74.29 × 10−6
T 1 , 1 5.83 × 10−82.33 × 10−75.87 × 10−71.49 × 10−75.95 × 10−74.05 × 10−6
T 1 , 2 5.84 × 10−82.34 × 10−75.85 × 10−71.49 × 10−75.97 × 10−74.05 × 10−6
T 1 , 3 5.53 × 10−82.21 × 10−75.41 × 10−71.78 × 10−77.08 × 10−75.26 × 10−6
Table 2. Summary of the simulation-obtained values of the rounding error signal variance of subsequent output quantities of the discrete wavelet transform algorithm for the wavelet “db2” with two iterations of the decomposition process, for numbers with a length of 32 bits, depending on the range of possible values of the implementation of the input quantities.
Table 2. Summary of the simulation-obtained values of the rounding error signal variance of subsequent output quantities of the discrete wavelet transform algorithm for the wavelet “db2” with two iterations of the decomposition process, for numbers with a length of 32 bits, depending on the range of possible values of the implementation of the input quantities.
QuantityWT Algorithm Input Values Range
[−1; 1][−2; 2][−3; 3][0; 2][0; 4][3; 9]
S 2 , 0 1.40 × 10−155.57 × 10−151.30 × 10−149.29 × 10−153.71 × 10−142.78 × 10−13
S 2 , 1 1.40 × 10−155.61 × 10−151.29 × 10−141.25 × 10−145.00 × 10−143.54 × 10−13
T 2 , 0 1.71 × 10−156.83 × 10−151.58 × 10−143.33 × 10−151.33 × 10−147.78 × 10−14
T 2 , 1 1.39 × 10−155.56 × 10−151.29 × 10−144.27 × 10−151.71 × 10−141.16 × 10−13
T 1 , 0 8.28 × 10−163.54 × 10−158.38 × 10−151.70 × 10−156.84 × 10−154.25 × 10−14
T 1 , 1 6.82 × 10−162.72 × 10−156.67 × 10−151.46 × 10−155.84 × 10−154.02 × 10−14
T 1 , 2 6.82 × 10−162.72 × 10−156.66 × 10−151.47 × 10−155.86 × 10−154.02 × 10−14
T 1 , 3 6.68 × 10−162.67 × 10−156.48 × 10−152.02 × 10−158.10 × 10−156.15 × 10−14
Table 3. Summary of shape factor values for pairs of signals with typical probability density functions for the confidence level 95%, where the following symbols denote a distribution: ( n ) normal, ( u ) uniform, ( t ) triangular, ( d ) u-shape (sine function distribution), ( z ) WT self-error signal distribution.
Table 3. Summary of shape factor values for pairs of signals with typical probability density functions for the confidence level 95%, where the following symbols denote a distribution: ( n ) normal, ( u ) uniform, ( t ) triangular, ( d ) u-shape (sine function distribution), ( z ) WT self-error signal distribution.
s a , b nutdz
n 0.0000 0.1561 0.0250 0.2988 0.0091
u 0.1561 0.3356 0.1773 0.5337 0.0662
t 0.0250 0.1773 0.0419 0.3504 0.0104
d 0.2988 0.5337 0.3504 0.7136 0.1971
z 0.0091 0.0662 0.0104 0.1971 0.0273
Table 4. Summary of the values of the relative error of estimating the expanded uncertainty values obtained by means of a measurement experiment (the case of a monoharmonic signal).
Table 4. Summary of the values of the relative error of estimating the expanded uncertainty values obtained by means of a measurement experiment (the case of a monoharmonic signal).
f s , o , HzRelative Error Value δ for Expanded Uncertainty Estimation, %
S 2 , 0 S 2 , 1 T 2 , 0 T 2 , 1 T 1 , 0 T 1 , 1 T 1 , 2 T 1 , 3
1000 3.52 4.27 + 9.29 + 7.09 + 30.49 + 24.32 + 24.32 + 9.49
2000 + 4.66 + 0.49 + 6.57 + 4.77 + 15.34 + 27.58 + 27.58 + 5.04
3000 + 10.24 + 5.10 + 7.81 + 6.53 + 11.67 + 21.96 + 21.96 + 6.19
4000 0.38 + 9.21 + 10.38 + 9.09 + 13.80 + 16.49 + 16.49 + 10.12
5000 + 3.99 + 2.69 + 3.51 + 2.45 + 5.71 + 5.62 + 5.62 + 4.02
6000 + 6.21 + 5.83 + 5.94 + 5.84 + 8.78 + 9.08 + 9.08 + 7.98
7000 + 9.29 + 10.38 + 8.84 + 8.15 + 9.86 + 10.86 + 10.86 + 9.87
8000 + 0.83 + 1.51 + 0.65 + 1.82 + 1.77 + 1.63 + 1.63 0.17
9000 + 2.99 + 2.06 + 1.74 + 4.68 + 1.82 + 1.30 + 1.30 + 1.67
10,000 + 6.33 + 6.23 + 5.04 + 5.55 + 5.46 + 4.36 + 4.36 + 5.05
11,000 1.64 0.06 + 0.49 + 0.75 0.41 0.61 0.61 + 0.05
12,000 11.33 11.98 1.06 1.05 1.68 1.68 1.68 1.72
13,000 + 5.20 + 3.38 + 4.78 + 5.54 + 5.23 + 4.46 + 4.46 + 5.46
14,000 + 2.83 + 2.93 + 2.50 + 2.20 + 3.40 + 2.39 + 2.39 + 3.60
15,000 + 2.50 + 5.49 + 2.42 + 2.89 + 3.04 + 2.10 + 2.17 + 2.53
16,000 0.34 1.63 2.09 2.94 2.44 2.76 2.76 2.34
17,000 + 3.20 + 5.51 + 4.40 + 0.97 + 3.18 + 3.05 + 3.05 + 3.91
18,000 + 6.19 + 7.02 + 1.95 + 2.66 + 4.57 + 4.56 + 4.56 + 4.50
19,000 4.08 3.37 13.04 3.45 3.70 4.00 4.00 3.70
20,000 + 5.87 + 2.91 15.64 + 6.81 + 8.00 + 7.68 + 7.68 + 7.34
Mean 1 4.58 4.60 5.41 4.26 7.02 7.82 7.83 4.74
1 Mean of absolute δ values for selected output quantity.
Table 5. Summary of the values of the relative error of estimating the expanded uncertainty values obtained by means of a measurement experiment (the case of a polyharmonic signal).
Table 5. Summary of the values of the relative error of estimating the expanded uncertainty values obtained by means of a measurement experiment (the case of a polyharmonic signal).
f s , o , HzRelative Error Value δ for Expanded Uncertainty Estimation, %
S 2 , 0 S 2 , 1 T 2 , 0 T 2 , 1 T 1 , 0 T 1 , 1 T 1 , 2 T 1 , 3
1000 + 20.52 + 18.96 4.26 + 4.16 + 21.57 + 10.47 + 10.47 + 9.63
2000 + 8.99 + 5.90 5.19 0.01 22.21 22.25 22.25 7.15
3000 12.69 + 16.92 + 8.45 + 9.16 15.20 13.56 13.56 + 7.15
4000 19.09 2.30 + 9.05 + 9.93 8.68 12.27 12.27 + 15.61
5000 15.90 0.52 + 9.88 + 0.00 12.82 20.08 20.08 + 22.54
Mean 1 15.44 8.92 7.37 4.65 16.10 15.73 15.73 12.42
1 Mean of absolute δ values for selected output quantity.
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.; Roj, J.; Dróżdż, Ł. 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. https://doi.org/10.3390/app14093691

AMA Style

Kampik M, Roj J, Dróżdż Ł. Estimation of the Resultant Expanded Uncertainty of the Output Quantities of the Measurement Chain Using the Discrete Wavelet Transform Algorithm. Applied Sciences. 2024; 14(9):3691. https://doi.org/10.3390/app14093691

Chicago/Turabian Style

Kampik, Marian, Jerzy Roj, and Łukasz Dróżdż. 2024. "Estimation of the Resultant Expanded Uncertainty of the Output Quantities of the Measurement Chain Using the Discrete Wavelet Transform Algorithm" Applied Sciences 14, no. 9: 3691. https://doi.org/10.3390/app14093691

APA Style

Kampik, M., Roj, J., & Dróżdż, Ł. (2024). Estimation of the Resultant Expanded Uncertainty of the Output Quantities of the Measurement Chain Using the Discrete Wavelet Transform Algorithm. Applied Sciences, 14(9), 3691. https://doi.org/10.3390/app14093691

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