Next Article in Journal
Single-Image 3D Mesh Reconstruction for Stylized Side-Face Characters via Prompt-Driven Multi-View Diffusion and Consistency Optimization
Previous Article in Journal
An Efficient Two-Stage Method for Correcting 3-D Positioning Errors of the Measuring Probe in a Non-Redundant Spherical Scan
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

On Sampled Sequence Representations at Discontinuities and Their Impact on Discrete Convolution

Applied Research LLC, Rockville, MD 20850, USA
Electronics 2026, 15(13), 2962; https://doi.org/10.3390/electronics15132962
Submission received: 30 May 2026 / Revised: 28 June 2026 / Accepted: 1 July 2026 / Published: 6 July 2026

Abstract

If one compares the continuous-time convolution outputs with their sampled discrete counterparts, one may observe slight differences even when the sampling process itself is otherwise straightforward. This issue becomes noticeable when one or both continuous-time signals have a discontinuity at the sampling instant, such as t = 0. In this paper, we revisit this issue and explain its root causes: the treatment of midpoint values at discontinuities and the sampling-period scaling that appears when a continuous-time convolution is approximated in discrete time. Although the midpoint rule is not new, we show how this classical result can be used systematically to construct sampled sequence representations that are consistent with inverse-transform reconstruction at discontinuities. Based on this viewpoint, we derive midpoint-consistent sampled sequence representations for quite a few representative functions, and we show the corresponding implications for sampled convolution formulae. Several examples are used to compare conventional discrete formulae with midpoint-consistent sampled formulae and with samples of the continuous-time results. The proposed formulation is intended for sampled continuous-time signals at discontinuities; it is not meant to replace standard native discrete-time conventions used in digital signal processing.

1. Introduction

Since the invention of fast Fourier transform (FFT) in the 1960s [1] and the discrete cosine transform (DCT) in the 1970s [2], digital and image processing algorithms have been widely used in many applications, including acoustic processing [3], voice recognition [4], face recognition [5], remote sensing [6], and many others. In the processing pipeline, continuous signals are discretized to discrete sequences. We normally expect the discrete signals to be the sampled versions of the corresponding continuous signals. This is mostly true when the sampling rate is high. However, in some cases such as the convolution of two step functions, there is a small difference between the discrete time and the continuous time versions. In particular, the convolution of unit step functions u ( t ) and u ( t ) is given by t u ( t ) in the continuous domain from Table 2 in [7]; the convolution of u [ n ] and u [ n ] in the discrete domain is given by ( n + 1 ) u [ n ] according to Table 3 in [7]. If one samples t u ( t ) , one will obtain a sequence of n T u [ n ] , not ( n + 1 ) u [ n ] . Why is the sampled version of t u ( t ) different from the discrete convolution of two discrete time step functions of u [ n ] ? Moreover, the discrete convolution formulae in Table 3 [7] do not have any connection with the sampling interval T. The consequence is that the continuous convolution outputs and the discrete convolution outputs are not the same.
Another example is the convolution between the unit step u ( t ) and the ramp function t u ( t ) , which is given by 0.5 t 2 u ( t ) from Table 2 of [7]. However, if one carries out the discrete time convolution between the corresponding discretized functions u [ n ] and n u [ n ] , one obtains 0.5 n ( n + 1 ) u [ n ] from Table 3 of [7]. The sampled version of 0.5 t 2 u ( t ) is, however, 0.5 n 2 T 2 u [ n ] , which is different from 0.5 n ( n + 1 ) u [ n ] . Multiplying T 2 to 0.5 n ( n + 1 ) u [ n ] will close the gap between the sampled version, 0.5 n 2 T 2 u [ n ] , and the scaled discrete version, 0.5 n ( n + 1 ) T 2 u [ n ] . But why do we need to multiply by T 2 ? What is going on here? Engineers may be confused by the above observations. Actually, there are many instances where the discrete-time convolution results are different from the sampled versions of the continuous convolution.
In this paper, we use examples with equations, figures, and metrics to illustrate the above issues between continuous-time convolutions and their sampled discrete counterparts. We then identify the root causes of the observed differences. One root cause is the discontinuity at t = 0 for functions such as the unit step u(t). A second root cause is the sampling-period scaling that arises when continuous-time convolution is approximated in discrete time. Classical results from Fourier analysis and distribution theory show that, at a point of jump discontinuity, the inverse transform reconstruction converges to the average of the left- and right-hand limits. The present paper does not claim this midpoint result as new. Rather, the goal is to apply it systematically to sampled sequence representations and to show its consequences for convolution formulae when the underlying signal is a sampled continuous-time signal with a discontinuity at the sampling instant.
It is important to distinguish between two different objects. A native discrete-time sequence is defined directly on the integer index n and may legitimately adopt the standard engineering convention u [0] = 1. A sampled continuous-time sequence, by contrast, is obtained from a continuous-time signal x(t) evaluated at t = nT. When x(t) has a jump discontinuity at the sampling instant, a midpoint-consistent sampled representation uses the average of the one-sided limits at that point. The results in this paper concern the latter setting. Therefore, our conclusions should be interpreted as a consistency analysis for sampled continuous-time representations at discontinuities, not as a universal replacement for standard native discrete-time DSP conventions.
For notational clarity, Section 3 will denote native discrete-time sequences by x d [ n ] and sampled sequences by x s [ n ] .
Classical Fourier analysis and distribution-theoretic results establish the midpoint value at jump discontinuities under inverse-transform reconstruction. Standard DSP textbooks [7,8,9,10,11], however, often adopt native discrete-time conventions for practical modeling. Sampled-data and digital-control texts [12,13,14], on the other hand, emphasize the relationship between continuous-time systems, sampling, and discrete-time approximations. The present paper focuses on the interface between these two viewpoints: it examines how the classical midpoint rule should be represented when a discrete sequence is interpreted specifically as a sampled version of an underlying continuous-time signal, and how that choice affects sampled-data convolution formulae.
Our contributions are as follows. First, we clarify the distinct roles of midpoint sampling at discontinuities and sampling-period scaling in explaining why sampled continuous-time convolution results can differ from conventional discrete formulae. Second, we present midpoint-consistent sampled representations for several representative functions and a general class of transfer functions. Third, we derive the corresponding implications for sampled convolution formulae. Finally, we use several examples, including a filter example, to compare conventional discrete results, midpoint-consistent sampled results, and sampled continuous-time results.
This paper is organized as follows. In Section 2, we will use an example to illustrate some issues in the convolution of two discrete unit step functions. In Section 3, we will provide the background for the inverse Fourier transform and Laplace transform. We will illustrate that the initial value x ( 0 ) of the inverse Fourier transform of X ( ω ) is one-half of the magnitude of the discontinuity. Similarly, we will illustrate that the initial value x ( 0 ) of the inverse Laplace transform of X ( s ) is also one-half of the magnitude of the discontinuity. We will also review the proper relationship between continuous convolution and discrete convolution. We then present the root cause of the issues raised in Section 2. In Section 4, we will then derive and present the formulae for discrete sample sequences of continuous functions with and without discontinuities and the formulae for discrete convolutions. In Section 5, we present four examples to illustrate the differences between various convolution outputs, including continuous convolution, conventional discrete convolution, and the midpoint-consistent sampled convolution. Finally, we conclude the paper with a few remarks in Section 6. In the Appendix A, Appendix B, Appendix C, Appendix D and Appendix E, we present detailed derivations for those formulae mentioned in Section 4.

2. Issues

Let us use the convolution of two step functions to illustrate the issues. The continuous step function is defined as
u t = 1 , t 0 0 , t < 0
The conventional discrete-time step sequence, denoted later by u d [ n ] , is defined as [7]
u [ n ] = 1 , n 0 0 , n < 0
When one performs the continuous convolution of two step functions, one obtains (Table 2 of [7])
y t = t u t = t , t 0 0 , t < 0
When one performs the discrete convolution of two step functions, one gets (Table 3 of [7])
y [ n ] = n + 1 u n = n + 1 , n 0 0 , n < 0
If we compare (3) and (4), one immediately notices that the sampling interval T is not explicitly present in (4). One should always keep in mind that at each discrete index n, the time at the nth sample is nT. We will see in Section 3 that, in order to ensure the discrete convolution outputs to have a similar magnitude as the continuous convolution outputs, we need to multiply one of the input sequences by T. Hence, the discrete convolution output in (4) should be replaced by
y [ n ] = n + 1 T u n
We call the discrete convolution output in (5) the scaled discrete convolution output.
Now let us use a table and a figure to illustrate another issue between continuous and discrete convolutions. Table 1 tabulates the continuous and discrete convolution results for several time instants. Here, we assume that the sampling interval T is 0.1 s. First, we observe from Table 1 that the discrete convolution outputs in row 4 are an order of magnitude larger than the continuous values. Second, even if we take the sampling interval T into account by multiplying the discrete convolution outputs in row 4 by T, the continuous (row 3) and scaled discrete convolution outputs (row 5) are still different. Figure 1 shows the difference between the continuous and the scaled discrete convolution results. Of course, one can argue that the difference is so small and can be ignored if T is small. However, in some applications, the sampling interval may not be small and this error may have some undesirable consequences.

3. Background and Explanations of the Issues in Section 2

Before presenting the transform-based arguments, we distinguish three related objects. Let x c ( t ) denote a continuous-time signal. Let x d [ n ] denote a native discrete-time sequence defined directly on the integer index n. Let x s [ n ] denote a sampled sequence obtained from x c ( t ) with sampling period T. If x c ( t ) is continuous at t = nT, then x s n = x c ( n T ) . If x c ( t ) has a jump discontinuity at t = 0, then under the midpoint-consistent sampled convention used in this paper, we set x s 0 = [x(0) + x(0+)]/2. Throughout the paper, we use δ(t) to denote the continuous-time Dirac delta and δ[n] to denote the discrete-time Kronecker impulse.
Let us consider a signal with discontinuity at t = 0,
x t = e p t u ( t )
where p > 0 and u ( t ) is the unit step function. Note that for x t , there is a jump of 0 to 1 from t = 0 to t = 0 + . The corresponding Fourier transform X ω and Laplace transform X s are respectively given by
X ω =   x t e j ω t d t = 0   e p t e j ω t d t = 1 p + j ω
X s =   x t e s t d t = 0   e p t e s t d t = 1 p + s

3.1. Inverse Fourier Transform of X ω at t = 0

The inverse Fourier transform of (7) is given by
x t = 1 2 π X ω   e j ω t d ω = 1 2 π 1 p + j ω   e j ω t d ω
Substituting t = 0 into (9), we have
x ( 0 ) = 1 2 π 1 p + j ω   d ω
To evaluate the above integral, we first evaluate the following definite integral [15]
g Ω = 1 2 π Ω Ω 1 p + j ω   d ω = 1 2 π 2 t a n 1 Ω / p
Therefore, after taking the limit of Ω to , we have
x 0 = lim Ω g Ω = ½ .
For a general discontinuity at t = 0, Papoulis [16] gives the standard midpoint formula
x 0 = x 0 + x ( 0 + ) 2 .
Equation (12) is a special case of (13). For the unit step, x 0 = 0 and x 0 + = 1 , and therefore x 0 = ½ .

3.2. Inverse Laplace Transform of X s at t = 0

By definition [7], the inverse Laplace transform of (8) is given by
x t = 1 2 π j c j c + j X s   e s t d s = 1 2 π j c j c + j 1 p + s   e s t d s
where c is a constant. Replacing s with s′ + c in (14) yields
x ( t ) = 1 2 π j j j 1 p + s + c   e ( s + c ) t d s
Using another substitution of s′ = j ω , (15) becomes
x ( t ) = 1 2 π 1 p + j ω + c   e ( j ω + c ) t d ω
Setting t = 0 in (16) yields
x ( 0 ) = 1 2 π 1 p + j ω + c   d ω
Following the same procedures as the inverse Fourier transform, we evaluate the following definite integral
g Ω = 1 2 π Ω Ω 1 p + c + j ω   d ω = 1 π t a n 1 Ω / ( p + c )
Hence, we obtain
x 0 = lim Ω g Ω = ½ .
When the relative degree of a Laplace transform is greater than one, the inverse transform does not have a discontinuity at t = 0. For example, the inverse Laplace transform of ω s 2 + ω 2 is sin ω t u ( t ) , which is zero at t = 0. In general, we can apply the initial value theorem to prove that, for any Laplace transform function with a relative degree greater than one, the inverse transform value at t = 0 is always zero, meaning that there are no discontinuities at t = 0.
For a general strictly proper transfer function X s , we can decompose X s into the sum of first-order transfer functions by using partial fraction expansion. That is,
X s = k = 1 N A k s + p k
where p k are the poles and A k are the corresponding residues.
By repeatedly using the results from (15)–(18), the inverse Laplace transform of X s evaluated at t = 0 yields
x 0 = 1 2 k = 1 N A k
An alternative and simple method for determining (20) is as follows. For a general function x ( t ) and its corresponding Laplace transform X s that is strictly proper, we can determine the appropriate discrete value at t = 0 by first determining the value of x ( t ) at t = 0+. This can be done by using the initial value theorem, which states that, for a strictly proper function X s , x 0 + = lim s s X ( s ) . If x 0 and x 0 + are nonzero, then the value of x(0) should take the average of x 0 and x 0 + .

3.3. Continuous Convolution and Discrete Convolution

Let x c ( t ) , h c ( t ) , and y c ( t ) denote the continuous-time input, impulse response, and output, respectively. By definition, the convolution between two functions in time is given by
y c t = x c t h c t = t x c τ h c t τ d τ
This is shown in Figure 2a.
Given a sampling period T, (21) can be discretized
y c n T = x c n T h c n T = k = n x c k T h c n T k T ·   T
Define the sampled impulse-response sequence
h s [ n ] = T h c n T .
Then the sampled-data convolution can be written as
y s [ n ] = k = n x s k h s [ n k ] ,
where x s n is the sampled input sequence and y s [ n ] is the sampled output sequence. Under this notation, the factor T is carried explicitly by the sampled impulse response h s [ n ] . This does not redefine native discrete-time convolution; it only specifies the sampled-data convention used to approximate the continuous-time convolution integral.
Equation (23) ensures that y s [ n ] and y t have similar magnitudes. The discrete time convolution is shown in Figure 2b. Actually, people usually forget about the importance of the factor T in discrete time convolution, resulting in a factor of T difference between continuous time and discrete time convolution results. Books [17,18] related to optics, however, do explicitly take the discretization factor (sampling period) into account to ensure continuous signals have similar magnitudes as the discrete counterparts.

3.4. Explanations of the Issues in Section 2

We can now apply the above material to explain the issues in Section 2. Under the midpoint-consistent sampled convention used here, the sampled step satisfies u s 0 = 1 / 2 .
To address the scaling factor T, we treat one sequence as the sampled impulse response and multiply it by T following the sampled-data interpretation in Figure 2b. With this convention, the resulting discrete calculation is designed to match the sampled continuous-time convolution result as closely as possible. For this reason, we refer to the result below as a midpoint-consistent sampled convolution, rather than a universally corrected discrete convolution. Consequently, the discrete convolution of two step functions should be
y s [ n ] = u n 0.5 δ n T ( u n 0.5 δ [ n ] ) = T u n u n T u n + 0.25 T δ n = n + 1 T u n T u n + 0.25 T δ n = n T u n + 0.25 T δ n
Now we tabulate the various convolution outputs in Table 2. It can be clearly seen that the midpoint-consistent sampled convolution samples (row 6 in Table 2) more closely match the continuous convolution outputs (row 3 in Table 2). To easily compare the various convolution outputs, we also plot them in Figure 3. Table 3 also summarizes the maximum absolute error (MAE) and the normalized root-mean-square-error (NRMSE) metrics for three sampling periods. It can be seen that the midpoint-consistent sampled convolutions are much closer to the continuous convolution results.

4. Main Results

4.1. Midpoint-Consistent Sampled Sequence Representations for Continuous Functions

Using the sampled-data convention established in Section 3, Table 4 summarizes midpoint-consistent sampled representations for several functions with jumps at t = 0. The last row assumes that H(s) is strictly proper.
Here, we include the inverse Fourier transform of π δ ω + 1 j ω (second row of Table 4) evaluated at t = 0. The derivations of the rest of the expressions in Table 4 are summarized in the Appendix A, Appendix B, Appendix C, Appendix D and Appendix E.
From [7], the Fourier transform pair for a step function is given by
u t   π δ ω + 1 j ω
If we perform the inverse Fourier transform of π δ ω + 1 j ω , we will have
u t = 1 2 π π δ ω + 1 j ω e j ω t d ω
We are interested in the value of u(0). Setting t = 0 in (26) yields
u 0 = 1 2 π π δ ω + 1 j ω d ω = 1 2 π π δ ω d ω + 1 2 π 1 j ω d ω
Note that the first integral involving π δ ω is 1/2 and the second integral involving 1 j ω is zero because 1 j ω is an odd function. Hence, when u(t) is represented by the sampled sequence u s [ n ] , the midpoint-consistent value is u s 0 = 1 / 2 .

4.2. Midpoint-Consistent Sampled Convolution Formulae

When performing convolution, it is important to distinguish a native discrete-time system from a sampled approximation of a continuous-time system. In the latter case, one sequence plays the role of the sampled impulse response and therefore carries the factor T, while sequences with jump discontinuities may also require midpoint-consistent values at n = 0. Table 5 summarizes the continuous-time formulae, the conventional discrete formulae, and the midpoint-consistent sampled formulae under this interpretation.
For the second row in Table 5, we already derived the convolution formulae in Section 3.4. That is, the last column in row 2 is basically Equation (25). Now, we will derive those formulae in row 3 to row 6.
  • Derivation of the Formula in Row 3 of Last Column in Table 5
The convolution between x s [ n ] and h s [ n ] is given by
y s n = u n 0.5 δ n n T 2 u n = T 2 u n n u n 0.5 T 2 u n = 0.5 n n + 1 T 2 u n 0.5 T 2 u n = 0.5 n 2 T 2 u [ n ]
  • Derivation of the Formula in Row 4 of Last Column in Table 5
Here, the midpoint-consistent convolution expression is given by
y s [ n ] = u n 0.5 δ n ( T e λ n T u n 0.5 T δ n ) = T e λ n T u n u n 0.5 T e λ n T u n + 0.25 T δ n = T 1 e λ ( n + 1 ) T 1 e λ T u [ n ] 0.5 T e λ n T u n + 0.25 T δ n = T 1 + e λ T 2 1 e λ n T 1 e λ T u n + 0.25 T δ n
  • Derivation of the Formula in Row 5 of Last Column in Table 5
The midpoint-consistent convolution is given by
y s [ n ] = e λ 1 n T u [ n ] 0.5 δ [ n ] ( T e λ 2 n T u [ n ] 0.5 T δ [ n ] ) = T e λ 2 n T u n e λ 1 n T u n 0.5 T e λ 1 n T u n 0.5 T e λ 2 n T u n + 0.25 T δ [ n ] = e λ 1 ( n + 1 ) T e λ 2 ( n + 1 ) T e λ 1 T e λ 2 T T u n 0.5 T e λ 1 n T u n 0.5 T e λ 2 n T u n + 0.25 T δ [ n ] = T e λ 1 T + e λ 2 T 2 e λ 1 n T e λ 2 n T e λ 1 T e λ 2 T u n + 0.25   T δ [ n ]
  • Derivations of the Formula in Row 6 of Last Column in Table 5
At n = 0,
x i 0 = x i 0 + ,      i = 1 ,   2 .
Then the midpoint-consistent sampled versions should be
x 1 , s n = x 1 n 0.5 ( x 1 ( 0 + ) x 1 ( 0 ) )   δ [ n ] ,
and
h s n = T x 2 n 0.5 T ( x 2 ( 0 + ) x 2 ( 0 ) )   δ [ n ] .
The midpoint-consistent convolution is given by
y s [ n ] = ( x 1 [ n ] 0.5 ( x 1 ( 0 + ) x 1 ( 0 ) )   δ [ n ] ) T ( x 2 [ n ] 0.5 ( x 2 0 + x 2 [ 0 ] )   δ [ n ] ) = T x 1 n x 2 n 0.5 T x 2 ( 0 + ) x 2 ( 0 ) x 1 n 0.5 T x 1 ( 0 + ) x 1 ( 0 ) x 2 n + 0.25 T x 1 ( 0 + x 1 ( 0 ) ) ( x 2 ( 0 + ) x 2 ( 0 ) ) δ [ n ]

5. Experimental Results

Here, we include a few examples to compare the conventional and midpoint-consistent formulae in Table 5.
Example 1: Convolution of one step and one ramp function.
The corresponding formulae for the convolution of one step and one ramp function are shown in row 3 of Table 5. Table 6 compares the various convolution results for a few samples. One can see that the continuous and midpoint-consistent sampled convolution results are exactly the same. Figure 4 also plots the three convolution outputs up to 1 s. It can be seen that the gap between the conventional discrete and the midpoint-consistent sampled convolution results grows bigger as time increases. This demonstrates the importance of using a sampled-data formulation consistent with the continuous-time model under the stated assumptions. Table 7 also summarizes the MAE and the NRMSE metrics for three sampling periods. The midpoint-consistent sampled convolution outputs are closely matched to the continuous convolution results.
Example 2: Convolution between a step and an exponential function.
Here, we want to show the convolution between u ( t ) and e λ t u ( t ) with λ = 5. The corresponding formulae are shown in row 4 of Table 5. The sampling interval T = 0.1 s. Figure 5 shows the convolution outputs. We can see that for this growing-exponential example, the absolute difference increases with n. Table 8 contains results from four time instants. At t = 1 or n =10, the difference between the conventional discrete response y d [ n ] and midpoint-consistent sampled responses y s [ n ] is about 8.08 for the reported example, which is non-negligible. This large difference is simply caused by the small discontinuity at t = 0. Table 9 also summarizes the maximum absolute error (MAE) and the normalized root-mean-square-error (NRMSE) metrics for three sampling periods. The same trend is observed in Table 9: the midpoint-consistent sampled result has substantially smaller MAE and NRMSE than the conventional discrete result.
Example 3: Convolution between two exponential functions.
This is the convolution between two exponential functions: e λ 1 t u ( t ) and e λ 2 t u ( t ) with λ 1 = 5 and λ 2 = 3 . From row 5 of Table 5, the convolution of the continuous functions gives
y t = e λ 1 t e λ 2 t λ 1 λ 2 u ( t ) .
Also from Table 5, the conventional discrete convolution output is
y n = e λ 1 ( n + 1 ) T e λ 2 ( n + 1 ) T e λ 1 T e λ 2 T T u [ n ]
Finally, from Table 5, the midpoint-consistent sampled convolution output is
y ( n T ) = T e λ 1 T + e λ 2 T 2 e λ 1 n T e λ 2 n T e λ 1 T e λ 2 T u n + 0.25   T δ [ n ] .
Table 10 tabulates a few samples for the various convolution outputs. Figure 6 also shows those convolution outputs. One can see that as time increases, the difference between the discrete and continuous outputs grows progressively larger. For instance, at t = 1 s, the difference is close to 10. Table 11 also summarizes the MAE and the NRMSE metrics for three sampling periods. The midpoint-consistent sampled convolution outputs have approximately two-order of magnitude smaller errors in MAE and NRMSE as compared to the conventional convolution outputs.
Example 4: Step response of a bandpass filter.
The continuous step input is u ( t ) , the conventional native discrete-time step sequence is u d n , and the midpoint-consistent sampled sequence is u s n = u d n 0.5 δ n . For a given bandpass filter
H b p s = 2 ( 2 ) s ( s + 2 ) 2 + 10 2 ,
its continuous impulse response is given by
h b p t = 4 e 2 t cos 10 t 0.2 s i n ( 10 t ) .
For a sampling period of T, the conventional discrete impulse response sequence is given by
h d [ n ] = T h b p n T
Since there is a discontinuity from 0 to 4 at t = 0 for the bandpass filter, a correction term of 2 is needed for the midpoint-consistent impulse response sequence h s [ n ] . Hence, the expression for the midpoint-consistent sampled impulse response sequence of the filter is given by
h s [ n ] = T ( h b p n T 2 δ n ) ) .
The left column of Figure 7 shows the conventional native discrete-time step function and the scaled discrete impulse response of the bandpass filter. The right column of Figure 7 shows the midpoint-consistent sampled unit step function and the scaled sampled impulse response of the filter. It can be clearly seen that the differences between the left and right columns of Figure 7 are at n = 0. The impact of these small differences is actually quite substantial, which can be seen in Figure 8. We can clearly see that the conventional discrete convolution response of the bandpass filter is quite different from that of the continuous step response. After adding the small correction at n = 0, the midpoint-consistent sampled step response is almost overlapping the continuous step response.
To further quantify the performance improvement of using the midpoint-consistent sampled sequences, we compute the errors between the conventional discrete convolution and the continuous convolution, and also the errors between the midpoint-consistent sampled convolution and the continuous convolution. Table 12 tabulates the maximum absolute error (MAE) and normalized root-mean-square-error (NRMSE) values for the two error sequences. There are three sampling periods: T = 0.02 s, T = 0.05 s, and T = 0.1 s. One can see that the performance gain from using the midpoint-consistent sampled sequences is substantial because an order of magnitude improvement can be seen in the NRMSE values.

6. Conclusions

Differences between continuous-time convolution outputs and their sampled discrete counterparts can arise for two distinct reasons: the sampling-period scaling used in approximating the continuous convolution integral, and the treatment of signals that are discontinuous at the sampling instant. In this paper, we revisited these issues and clarified their relationship. Although the midpoint value at a jump discontinuity is a classical result from Fourier analysis and distribution theory, we showed how this result can be used systematically to construct midpoint-consistent sampled sequence representations. From this sampled-data interpretation, the corresponding convolution formulae acquire small but explicit modifications. We also stressed that these formulae are intended for sampled continuous-time signals at discontinuities and are not meant to replace standard native discrete-time conventions used in digital signal processing. The examples show that, when T is not negligibly small and a discontinuity occurs at the sampling instant, the midpoint-consistent sampled formulae match the sampled continuous-time results more closely than the conventional formulae.

Funding

This research received no external funding.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Acknowledgments

Chiman Kwan is now with the Johns Hopkins University Applied Physics Laboratory. This research, however, was performed when Chiman Kwan was an adjunct professor at the Electrical and Computer Engineering (ECE) Department of the Old Dominion University (ODU), Norfolk, Virginia, USA, teaching undergraduate and graduate courses in linear systems, digital signal processing, and digital image processing in 2021 and 2022. Chiman Kwan would like to thank the Chairman of the ECE Department at ODU for the opportunity and the appointment, and also for his guidance on teaching.

Conflicts of Interest

Author Chiman Kwan was employed by the company Applied Research LLC at the time of this research. The author declares that the research was conducted in the absence of any commercial or financial relationships that could be construed as potential conflicts of interest.

Appendix A. Derivations of Expressions in Table 4

In this Appendix, x c ( t ) denotes the underlying continuous-time signal. Let x s , c o n v [ n ] denote the conventionally sampled sequence obtained from x c ( t ) by evaluating it at t = nT under the usual point-sampling convention. Let x s [ n ] denote the midpoint-consistent sampled sequence used in the main text. We avoid the notation x s [ n ] here because Table 4 concerns sampled representations of continuous-time signals rather than native discrete-time sequences.

Second Row of Table 4

Inverse Laplace Transform of 1/s at t = 0.
We now demonstrate that the inverse Laplace transform of 1/s is 0.5 at t = 0. Recall that the inverse Laplace transform of a function X(s) is given by [7,19]
x t = 1 2 π j c j c + j X s e s t d s
Now suppose X(s) = 1/s. We would like to determine the value of x(t) at t = 0. Substituting X(s) = 1/s into (A1) and setting t = 0, we get
x 0 = 1 2 π j c j c + j 1 / s d s
Let s = c + j ω and c = constant, then ds = jd ω . Equation (A2) then becomes
x 0 = 1 2 π j c j c + j 1 c + j ω d j ω = 1 2 π c j c + j 1 c + j ω d ω = 1 2 π c j c + j c j ω c 2 + ω 2 d ω = 1 2 π c j c + j c c 2 + ω 2 d ω 1 2 π c j c + j j ω c 2 + ω 2 d ω
The second term in (A3) equals to zero because j ω c 2 + ω 2 is an odd function. The first term equals to 1 / 2 regardless of the value of c. Hence, from (A3), we have x 0 = 1 / 2 .

Appendix B. Derivations of Third Row Expressions in Table 4

e p t u t ,   p > 0 1 j ω + p 1 s + p e p n T u [ n ] e p n T u n 0.5 δ [ n ]

Appendix B.1. From the Inverse Fourier Transform Expression to the Last-Column Sequence

The inverse Fourier transform is
x t = 1 2 π 1 p + j ω e j ω t d ω .
For t > 0, x t = e p t ; for t < 0, causality gives x t = 0 . Evaluating at t = nT gives the conventional sampled sequence
x s , c o n v n = e p n T u n ,
which is the expression for the fourth column of the third row in Table 4.
For t = 0,
x 0 = 1 2 π 1 p + j ω d ω = 1 2 π p j ω p 2 + ω 2 d ω = 1 2 π p p 2 + ω 2 d ω + 1 2 π j ω p 2 + ω 2 d ω
The second integral is zero because the integrand is odd. The first integral is
1 2 π π = 1 2 .
Hence, x 0 = 1 2 . Evaluating at t = nT gives the midpoint-consistent sampled sequence
x s [ n ] = 0 , n < 0 1 2 , n = 0 e p n T , n > 0 = e p n T u n 0.5 δ [ n ]

Appendix B.2. From the Laplace-Domain Expression to the Last-Column Sequence

Here, the inverse Laplace transform of 1 s + p is given by
x t = e p t u t ,   t > 0
Using the methodology described in Section 3.2, a first-order of the form 1 s + p has a value of ½ at t = 0. Therefore, the midpoint-consistent sampled sequence is
x s n = e p n T u n 0.5 δ n .

Appendix C. Derivations of Fourth Row Expressions in Table 4

c o s ( b t ) u ( t ) j ω ω 2 + b 2 + π 2 δ ω b + δ ω + b s s 2 + b 2 cos b n T u [ n ] cos b n T u n 0.5 δ [ n ]

Appendix C.1. From the Fourier-Domain Expression to the Last-Column Sequence

Given the continuous signal x ( t ) = c o s ( b t ) u ( t ) , the conventional sampled sequence with sampling period T is
x s , c o n v [ n ] = cos b n T , n > 0 = cos b n T u [ n ]
The inverse Fourier transform of j ω ω 2 + b 2 + π 2 δ ω b + δ ω + b is given by
x t = 1 2 π j ω ω 2 + b 2 + π 2 δ ω b + δ ω + b e j ω t d ω
Now we evaluate the value at the discontinuity t = 0, exactly in the style of Section 3.1:
x t = 1 2 π j ω ω 2 + b 2 d ω + 1 2 π π 2 δ ω b + δ ω + b d ω
The first integrand is odd in ω and so the integration output is zero. The second integrand with the two Dirac deltas gives
x 0 = 1 2 π π 2 1 + 1 = 1 2 .
Hence, the midpoint-consistent continuous-time function is
x t = 0 , t < 0 1 2 , t = 0 cos b t , t > 0
Evaluating at t = nT gives the midpoint-consistent sampled sequence
x s [ n ] = 0 , n < 0 1 2 , n = 0 cos b n T , n > 0 = cos b n T u n 0.5 δ [ n ]
which is the last column entry in the fourth row of Table 4.

Appendix C.2. From the Laplace-Domain Expression to the Last-Column Sequence

Applying partial fraction expansion, we have
s s 2 + b 2 = 1 2 1 s j b + 1 s + j b .
The inverse transform for t > 0 then becomes
x t = 1 2 e j b t + e j b t = cos b t .
Because this is a causal Laplace transform, the time-domain signal is
x t = cos b t u t .
Now using the methodology in Section 3.2 at t = 0 to the two first-order terms 1 s j b   a n d   1 s + j b , we have
x 0 = 1 / 2 .
Finally, we get
x t = 0 , t < 0 1 2 , t = 0 cos b t , t > 0 .
Evaluating at t = nT gives the midpoint-consistent sampled sequence
x s [ n ] = 0 , n < 0 1 2 , n = 0 cos b n T , n > 0 = cos b n T u n 0.5 δ n .

Appendix D. Derivations of Fifth Row Expressions in Table 4

e a t c o s ( b t ) u ( t ) a + j ω a + j ω 2 + b 2 s + a ( s + a ) 2 + b 2 e a n T cos b n T u [ n ] e a n T cos b T u n 0.5 δ [ n ]

Appendix D.1. From the Inverse Fourier Transform Expression to the Last-Column Sequence

The inverse Fourier transform of a + j ω a + j ω 2 + b 2 is given by
x t = 1 2 π a + j ω a + j ω 2 + b 2 e j ω t d ω .
Applying partial fraction expansion gives
a + j ω a + j ω 2 + b 2 = 1 2 1 a + j ( ω b ) + 1 a + j ( ω + b )
Hence,
x t = 1 2 π 1 2 1 a + j ( ω b ) + 1 a + j ( ω + b ) e j ω t d ω .
For t > 0, this is the standard inverse transform and gives
x t = e a t cos b t .
Because the original signal is causal,
x t = 0   f o r   t < 0 .
Evaluating at t = nT gives the conventional sampled sequence
x s , c o n v [ n ] = e a n T cos b n T u [ n ] ,
which is the fourth column in the fifth row of Table 4.
Now we evaluate the discontinuity sample exactly as in Section 3.1 of the paper by setting t = 0:
x 0 = 1 2 π 1 2 1 a + j ( ω b ) + 1 a + j ( ω + b ) d ω = 1 2 π 1 2 1 a + j ( ω b ) d ω + 1 2 π 1 2 1 a + j ( ω + b ) d ω .
Substituting ν = ω b into the first integral and μ = ω + b into the second integral, we get
x 0 = 1 2 π 1 2 1 a + j ν d ω + 1 2 π 1 2 1 a + j μ d ω = 1 2 π 1 2 a j ν a 2 + ν 2 d ν + 1 2 π 1 2 a j μ a 2 + μ 2 d μ = 1 2 π 2 2 a j ν a 2 + ν 2 d ν = 1 2 π a a 2 + ν 2 d ν 1 2 π j ν a 2 + ν 2 d ν
The second integral in the above equation is zero since the integrand is odd. The first integral equals to ½. Hence, the inverse Fourier is given by
x t = 0 , t < 0 1 2 , t = 0 e a t cos b t , t > 0 .
Evaluating at t = nT gives the midpoint-consistent sampled sequence
x s [ n ] = 0 , n < 0 1 2 , n = 0 e a n T cos b n T , n > 0 = e a n T cos b T u n 0.5 δ [ n ] ,
which is the last column in the fifth row of Table 4.

Appendix D.2. From the Laplace-Domain Expression to the Last-Column Sequence

Using partial fraction expansion, we get
s + a s + a 2 + b 2 = 1 2 1 s + a j b + 1 s + a + j b .
Taking the inverse Laplace transform term by term yields
x t = 1 2 e a + j b t u t + 1 2 e a j b t u t .
Combining the two exponentials gives
x t = e a t cos b t u ( t ) .
Evaluating at t = nT gives the conventional sampled sequence
x s , c o n v [ n ] = e a n T cos b n T u [ n ] ,
which is the fourth column in the fifth row of Table 4.
Now, let us apply the paper’s Section 3.2 at t = 0. Each first-order term contributes half its coefficient at the discontinuity by repeatedly using the result for first-order Laplace terms. Therefore,
x 0 = 1 2 1 2 + 1 2 1 2 = 1 2 .
So again,
x t = 0 , t < 0 1 2 , t = 0 e a t cos b t , t > 0 .
Evaluating at t = nT gives the midpoint-consistent sampled sequence
x s [ n ] = 0 , n < 0 1 2 , n = 0 e a n T cos b n T , n > 0 = e a n T cos b T u n 0.5 δ [ n ] ,
which is the last column in the fifth row of Table 4.

Appendix E. Derivations of Sixth Row Expressions in Table 4

x t = k = 1 N A k e p k t u ( t ) X j ω = k = 1 N A k j ω + p k X s = k = 1 N A k s + p k k = 1 N A k e p k n T u [ n ] k = 1 N A k e p k n T u [ n ] k = 1 N A k 2 δ [ n ]

Appendix E.1. From the Inverse Fourier Transform Expression to the Last-Column Sequence

Assume x t , the inverse Laplace transform of X ( s ) , is absolutely integrable. Equivalently, all the poles of the strictly proper transform function X ( s ) lie in the open left half of the s-plane. Let
X s = k = 1 N A k s + p k ,     R e p k > 0 .
Then, on the j ω axis,
X j ω = k = 1 N A k j ω + p k .
We now apply inverse Fourier transform term by term to get
x t = k = 1 N A k 2 π e j ω t j ω + p k d ω
Hence, the kth term is exactly the same type as the Fourier transform row (third row of Table 4) for
e p k t u ( t ) .
The combined inverse transform output is
x t = k = 1 N A k e p k t u ( t ) .
Evaluating at t = nT gives the conventional sampled sequence
x s , c o n v [ n ] = k = 1 N A k e p k n T u [ n ] .
Note that x 0 = 0 and x 0 + = k = 1 N A k . Therefore, by the same midpoint argument used earlier, its inverse-Fourier reconstruction at t = 0 is one-half of its jump, i.e.,
x 0 = k = 1 N A k 2 .
Finally, the inverse Fourier of X j ω is
x t = 0 , t < 0 k = 1 N A k 2 , t = 0 k = 1 N A k e p k t , t > 0
Evaluating at t = nT gives the midpoint-consistent sampled sequence
x s [ n ] = 0 , n < 0 k = 1 N A k 2 , n = 0 k = 1 N A k e p k n T , n > 0
which is the same as
k = 1 N A k e p k n T u [ n ] k = 1 N A k 2 δ [ n ] .

Appendix E.2. From the Laplace-Domain Expression to the Last-Column Sequence

Let
X s = k = 1 N A k s + p k , R e p k > 0 .
Repeatedly applying the first-order results earlier, we get
x t = k = 1 N A k e p k t u ( t ) .
Evaluating at t = nT gives the conventional sampled sequence
x s , c o n v [ n ] = k = 1 N A k e p k n T u [ n ] .
Using the initial value theorem, we get
x 0 + = k = 1 N A k .
For t < 0, x 0 = 0 . At the discontinuity (t = 0), the midpoint is given by
x 0 = 0.5 x 0 + x 0 + = 1 2 k = 1 N A k .
Hence, the inverse Laplace transform is
x t = 0 , t < 0 k = 1 N A k 2 , t = 0 k = 1 N A k e p k t , t > 0
Evaluating at t = nT gives the midpoint-consistent sampled sequence
x s [ n ] = 0 , n < 0 k = 1 N A k 2 , n = 0 k = 1 N A k e p k n T , n > 0
which is the same as
k = 1 N A k e p k n T u [ n ] k = 1 N A k 2 δ [ n ] .

References

  1. Cooley, J.W.; Tukey, J.W. An algorithm for the machine calculation of complex Fourier series. Math. Comput. 1965, 19, 297–301. [Google Scholar] [CrossRef]
  2. Ahmed, N.; Natarajan, T.; Rao, K.R. Discrete Cosine Transform. IEEE Trans. Comput. 1974, C-23, 90–93. [Google Scholar] [CrossRef]
  3. Kwan, C.; Ho, K.C.; Mei, G.; Li, Y.; Ren, Z.; Xu, R.; Zhang, Y.; Lao, D.; Stevenson, M.; Stanford, V.; et al. An Automated Acoustic System to Monitor and Classify Birds. EURASIP J. Adv. Signal Process. 2006, 2006, 096706. [Google Scholar] [CrossRef]
  4. Chan, W.; Jaitly, N.; Le, Q.; Vinyals, O. Listen, attend and spell: A neural network for large vocabulary conversational speech recognition. In Proceedings of the 2016 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Shanghai, China, 20–25 March 2016; pp. 4960–4964. [Google Scholar]
  5. Ugail, H. Deep face recognition using full and partial face images. In Advanced Methods and Deep Learning in Computer; Elsevier: Amsterdam, The Netherlands, 2022. [Google Scholar]
  6. Dao, M.; Kwan, C.; Ayhan, B.; Tran, T.D. Burn scar detection using cloudy MODIS images via low-rank and sparsity-based models. In Proceedings of the 2016 IEEE Global Conference on Signal and Information Processing (GlobalSIP), Washington, DC, USA, 7–9 December 2016; pp. 177–181. [Google Scholar]
  7. Lathi, B.P.; Green, R. Linear Systems and Signals, 3rd ed.; Oxford University Press: Oxford, UK, 2018. [Google Scholar]
  8. Oppenheim, A.V.; Schafer, R.W.; Buck, J.R. Discrete-Time Signal Processing, 3rd ed.; Pearson/Prentice Hall: Upper Saddle River, NJ, USA, 2010. [Google Scholar]
  9. Oppenheim, A.V.; Willsky, A.S.; Nawab, S.H. Signals and Systems, 2nd ed.; Prentice Hall: Upper Saddle River, NJ, USA, 1997. [Google Scholar]
  10. Proakis, J.; Manolakis, D.G. Digital Signal Processing, 5th ed.; Pearson: London, UK, 2021. [Google Scholar]
  11. Lyons, R.G. Understanding Digital Signal Processing, 3rd ed.; Prentice Hall: Hoboken, NJ, USA, 2011. [Google Scholar]
  12. Åström, K.J.; Wittenmark, B. Computer-Controlled Systems: Theory and Design, 3rd ed.; Prentice Hall: Upper Saddle River, NJ, USA, 1997. [Google Scholar]
  13. Franklin, G.F.; Powell, J.D.; Workman, M.L. Digital Control of Dynamic Systems, 3rd ed.; Addison-Wesley: Reading, MA, USA, 1998. [Google Scholar]
  14. Chen, T.; Francis, B.A. Optimal Sampled-Data Control Systems; Springer: London, UK, 1995. [Google Scholar]
  15. Jackson, L.B. A correction to impulse invariance. In IEEE Signal Processing Letters; IEEE: New York, NY, USA, 2000; Volume 7, pp. 273–275. [Google Scholar] [CrossRef]
  16. Papoulis, A. The Fourier Integral and Its Applications; McGraw-Hill: New York, NY, USA, 1962. [Google Scholar]
  17. Voelz, D.G. Computational Fourier Optics: A MATLAB Tutorial; SPIE Press: Bellingham, WA, USA, 2011. [Google Scholar]
  18. Schmidt, J.D. Numerical Simulation of Optical Wave Propagation with Examples in MATLAB®; SPIE Press: Bellingham, WA, USA, 2010. [Google Scholar] [CrossRef]
  19. Kwan, C.; Ferguson, H. A Fresh Revisit of the Issues and Improvements of Impulse Invariance Filter Design for Infinite Impulse Response Filters. Electronics 2024, 13, 3753. [Google Scholar] [CrossRef]
Figure 1. Comparison of convolution responses. There is a constant difference between the continuous and the scaled discrete convolution results. T = 0.1.
Figure 1. Comparison of convolution responses. There is a constant difference between the continuous and the scaled discrete convolution results. T = 0.1.
Electronics 15 02962 g001
Figure 2. Continuous-time convolution integral (a) and sampled-data discrete approximation (b) used in this paper.
Figure 2. Continuous-time convolution integral (a) and sampled-data discrete approximation (b) used in this paper.
Electronics 15 02962 g002
Figure 3. Comparison of convolution responses between two unit-step functions. The midpoint-consistent sampled convolution results overlap with the sampled continuous convolution results except a small difference at t = 0. T = 0.1.
Figure 3. Comparison of convolution responses between two unit-step functions. The midpoint-consistent sampled convolution results overlap with the sampled continuous convolution results except a small difference at t = 0. T = 0.1.
Electronics 15 02962 g003
Figure 4. Comparison of convolution responses. The continuous convolution output is 0.5 t 2 u(t). T = 0.1.
Figure 4. Comparison of convolution responses. The continuous convolution output is 0.5 t 2 u(t). T = 0.1.
Electronics 15 02962 g004
Figure 5. Comparison of convolution responses between a unit step and an exponential function. T = 0.1.
Figure 5. Comparison of convolution responses between a unit step and an exponential function. T = 0.1.
Electronics 15 02962 g005
Figure 6. Comparison of convolution responses between two exponential functions. T = 0.1.
Figure 6. Comparison of convolution responses between two exponential functions. T = 0.1.
Electronics 15 02962 g006
Figure 7. Left column (red): Conventional discrete sequences. Right column (green): Midpoint-consistent sampled sequences. Top: Input step function; bottom: Scaled discrete impulse response. T = 0.1 s.
Figure 7. Left column (red): Conventional discrete sequences. Right column (green): Midpoint-consistent sampled sequences. Top: Input step function; bottom: Scaled discrete impulse response. T = 0.1 s.
Electronics 15 02962 g007
Figure 8. Convolution of a unit step function with a bandpass filter. T = 0.1 s.
Figure 8. Convolution of a unit step function with a bandpass filter. T = 0.1 s.
Electronics 15 02962 g008
Table 1. Comparison of continuous and discrete convolution outputs of two step functions. T = 0.1.
Table 1. Comparison of continuous and discrete convolution outputs of two step functions. T = 0.1.
Time (s)00.10.20.3
Sampling index n 0123
Continuous convolution (3): tu(t)00.10.20.3
Discrete convolution (4): ( n + 1 ) u [ n ] 1234
Scaled discrete convolution (5): ( n + 1 ) T u [ n ] 0.10.20.30.4
Table 2. Comparison of continuous and discrete convolution outputs of two step functions. T = 0.1.
Table 2. Comparison of continuous and discrete convolution outputs of two step functions. T = 0.1.
Time (s)00.10.20.3
Sampling index n0123
Continuous convolution: tu(t)00.10.20.3
Discrete convolution: ( n + 1 ) u [ n ] 1234
Scaled discrete convolution: ( n + 1 ) T u [ n ] 0.10.20.30.4
Midpoint-consistent sampled convolution: n T u n + 0.25 T δ n 0.0250.10.20.3
Table 3. MAE and NRMSE values for convolution outputs with different sampling periods.
Table 3. MAE and NRMSE values for convolution outputs with different sampling periods.
Sampling PeriodT = 0.02 (s)T = 0.05 (s)T = 0.1 (s)
Error Metric
MAEConventional0.0200.050.1
Midpoint-consistent 0.0050.0130.025
NRMSEConventional0.0340.0860.169
Midpoint-consistent0.00120.00470.0127
Table 4. Sampled sequences of some well-known continuous functions with discontinuities at t = 0.
Table 4. Sampled sequences of some well-known continuous functions with discontinuities at t = 0.
ContinuousFourierLaplaceSampled Sequence (Conventional)Sampled Sequence
(Midpoint-Consistent)
u ( t ) π δ ω + 1 j ω 1 s u [ n ] u n 0.5 δ [ n ]
e p t u t ,   p > 0 1 j ω + p 1 s + p e p n T u [ n ] e p n T u n 0.5 δ [ n ]
c o s ( b t ) u ( t ) j ω ω 2 + b 2 + π 2 δ ω b + δ ω + b s s 2 + b 2 cos b n T u [ n ] cos b n T u n 0.5 δ [ n ]
e a t c o s ( b t ) u ( t ) a + j ω a + j ω 2 + b 2 s + a ( s + a ) 2 + b 2 e a n T cos b n T u [ n ] e a n T cos b n T u n 0.5 δ [ n ]
x t = k = 1 N A k e p k t u ( t ) X j ω = k = 1 N A k j ω + p k X s = k = 1 N A k s + p k k = 1 N A k e p k n T u [ n ] k = 1 N A k e p k n T u [ n ] k = 1 N A k 2 δ [ n ]
Table 5. Convolution of well-known signals in the continuous and discrete domains. Both conventional and midpoint-consistent formulae are included. Signal x c is treated as the input and h c is treated as the system impulse response. Exponential rows apply to both growing and decaying exponentials; the decaying case follows by setting λ = a ,   a > 0 (or λ 1 = a i ,   a i > 0 ). For stable impulse-response interpretations, the decaying case is assumed. Note that, in the last row, x 1 n and x 2 n denote conventional right-continuous samples, so that x i 0 = x i 0 + ,   i = 1 ,   2 . The midpoint correction is therefore proportional to the jump size x i ( 0 + ) x i 0 ,   i = 1 ,   2 .
Table 5. Convolution of well-known signals in the continuous and discrete domains. Both conventional and midpoint-consistent formulae are included. Signal x c is treated as the input and h c is treated as the system impulse response. Exponential rows apply to both growing and decaying exponentials; the decaying case follows by setting λ = a ,   a > 0 (or λ 1 = a i ,   a i > 0 ). For stable impulse-response interpretations, the decaying case is assumed. Note that, in the last row, x 1 n and x 2 n denote conventional right-continuous samples, so that x i 0 = x i 0 + ,   i = 1 ,   2 . The midpoint correction is therefore proportional to the jump size x i ( 0 + ) x i 0 ,   i = 1 ,   2 .
x c t h c t y c t = x c t h c t x d [ n ] (Conventional) h d [ n ] (Conventional) y d [ n ] (Conventional) x s [ n ] (Midpoint-Consistent Sampled) h s [ n ] (Midpoint-Consistent Sampled) y s [ n ]
(Midpoint-Consistent Sampled)
u ( t ) u ( t ) t u ( t ) u [ n ] T u [ n ] ( n + 1 ) T u [ n ] u n 0.5 δ [ n ] T u n 0.5 T δ [ n ] n T u [ n ] + 0.25 T   δ [ n ]
u ( t ) t u ( t ) 0.5 t 2 u ( t ) u [ n ] T 2 n u [ n ] 0.5 n ( n + 1 ) T 2 u [ n ] u n 0.5 δ [ n ] n T 2 u [ n ] 0.5 n 2 T 2 u [ n ]
u ( t ) e λ t u ( t ) 1 e λ t λ u ( t ) u [ n ] T e λ n T u [ n ] T 1 e λ ( n + 1 ) T 1 e λ T u [ n ] u n 0.5 δ [ n ] T e λ n T u [ n ] 0.5 T δ [ n ] T 1 + e λ T 2 1 e λ n T 1 e λ T u n + 0.25 T   δ [ n ]
e λ 1 t u ( t ) e λ 2 t u ( t ) e λ 1 t e λ 2 t λ 1 λ 2 u ( t ) e λ 1 n T u [ n ] T e λ 2 n T u [ n ] e λ 1 ( n + 1 ) T e λ 2 ( n + 1 ) T e λ 1 T e λ 2 T T u [ n ] e λ 1 n T u [ n ] 0.5 δ [ n ] T e λ 2 n T u [ n ] 0.5 T δ [ n ] T e λ 1 T + e λ 2 T 2 e λ 1 n T e λ 2 n T e λ 1 T e λ 2 T u n + 0.25   T δ [ n ]
x 1 (t) x 2 (t) x 1 ( t )   x 2 ( t ) x 1 [ n ] T x 2 [ n ] x 1 [ n ] T x 2 [ n ] x 1 [ n ] 0.5 ( x 1 0 + x 1 0 )   δ [ n ] T x 2 [ n ] 0.5 T ( x 2 0 + x 2 0 ) δ [ n ] T x 1 n x 2 n 0.5 T x 2 ( 0 + ) x 2 ( 0 ) x 1 n 0.5 T x 1 ( 0 + ) x 1 ( 0 ) x 2 n + 0.25 T ( x 1 ( 0 + ) x 1 ( 0 ) ) ( x 2 ( 0 + ) x 2 ( 0 ) ) δ [ n ]
Table 6. Various convolution outputs between a unit step and a ramp. T = 0.1.
Table 6. Various convolution outputs between a unit step and a ramp. T = 0.1.
Time (s)00.10.20.3
n0123
0.5 t 2 u(t)00.0050.020.045
0.5 n ( n + 1 ) T 2 u [ n ] 00.010.030.06
0.5 n 2 T 2 u [ n ] 00.0050.020.045
Table 7. MAE and NRMSE values for convolution outputs with different sampling periods.
Table 7. MAE and NRMSE values for convolution outputs with different sampling periods.
Sampling PeriodT = 0.02 (s)T = 0.05 (s)T = 0.1 (s)
Error Metric
MAEConventional0.0100.0250.05
Midpoint-consistent 0.0000.0000.000
NRMSEConventional0.0260.0630.123
Midpoint-consistent0.0000.0000.000
Table 8. Various convolution outputs between a unit step and an exponential function. T = 0.1.
Table 8. Various convolution outputs between a unit step and an exponential function. T = 0.1.
Time (s)00.10.20.3
n0123
1 e λ t λ u ( t ) 00.12970.34370.6963
T 1 e λ ( n + 1 ) T 1 e λ T u [ n ] 0.10.26490.53670.9849
T 1 + e λ T 2 1 e λ n T 1 e λ T u n + 0.25 T   δ [ n ] 0.0250.13240.35080.7108
Table 9. MAE and NRMSE values for convolution outputs with different sampling periods.
Table 9. MAE and NRMSE values for convolution outputs with different sampling periods.
Sampling PeriodT = 0.02 (s)T = 0.05 (s)T = 0.1 (s)
Error Metric
MAEConventional1.5193.8898.082
Midpoint-consistent 0.0250.1530.612
NRMSEConventional0.0520.1330.276
Midpoint-consistent0.000840.00520.021
Table 10. Various convolution outputs between two exponential functions. T = 0.1.
Table 10. Various convolution outputs between two exponential functions. T = 0.1.
Time (s)00.10.20.3
n0123
e λ 1 t e λ 2 t λ 1 λ 2 u ( t ) 00.14940.44811.0110
e λ 1 ( n + 1 ) T e λ 2 ( n + 1 ) T e λ 1 T e λ 2 T T u [ n ] 0.10.29990.67661.3615
T e λ 1 T + e λ 2 T 2 e λ 1 n T e λ 2 n T e λ 1 T e λ 2 T u n + 0.25   T δ [ n ] 0.0250.14990.44961.0144
Table 11. MAE and NRMSE values for convolution outputs with different sampling periods.
Table 11. MAE and NRMSE values for convolution outputs with different sampling periods.
Sampling PeriodT = 0.02 (s)T = 0.05 (s)T = 0.1 (s)
Error Metric
MAEConventional1.6944.2668.639
Midpoint-consistent 0.00860.0530.214
NRMSEConventional0.0280.0700.140
Midpoint-consistent0.000140.000840.0033
Table 12. MAE and NRMSE values for convolution outputs with different sampling periods.
Table 12. MAE and NRMSE values for convolution outputs with different sampling periods.
Sampling PeriodT = 0.02 (s)T = 0.05 (s)T = 0.1 (s)
Error Metric
MAEConventional0.0790.1990.399
Midpoint-consistent 0.0190.0490.099
NRMSEConventional0.5201.3362.808
Midpoint-consistent0.0210.0910.292
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

Kwan, C. On Sampled Sequence Representations at Discontinuities and Their Impact on Discrete Convolution. Electronics 2026, 15, 2962. https://doi.org/10.3390/electronics15132962

AMA Style

Kwan C. On Sampled Sequence Representations at Discontinuities and Their Impact on Discrete Convolution. Electronics. 2026; 15(13):2962. https://doi.org/10.3390/electronics15132962

Chicago/Turabian Style

Kwan, Chiman. 2026. "On Sampled Sequence Representations at Discontinuities and Their Impact on Discrete Convolution" Electronics 15, no. 13: 2962. https://doi.org/10.3390/electronics15132962

APA Style

Kwan, C. (2026). On Sampled Sequence Representations at Discontinuities and Their Impact on Discrete Convolution. Electronics, 15(13), 2962. https://doi.org/10.3390/electronics15132962

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