How do I interpret the units of my discrete convolution results?

  • Thread starter Thread starter csand
  • Start date Start date
  • Tags Tags
    Discrete
AI Thread Summary
Interpreting the results of a discrete convolution involves understanding the relationship between the original functions and the convolved output. When convolving a high-resolution spectrum with a Gaussian curve, the resulting function's length is given by the formula len(1) + len(2) - 1. The convolution shifts the original data, meaning that each point in the original spectrum corresponds to a point in the convolved spectrum adjusted by half the length of the Gaussian kernel. It's crucial to center the convolved data around the original spectrum to maintain proper correspondence and trim the outer values, as the ends of the convolved spectrum may be affected by padding. Only the central portion of the convolved data is reliable for analysis.
csand
Messages
4
Reaction score
0
I'm having trouble understanding the results of a discrete convolution. I have two functions:

1) High resolution spectra
2) Gaussian curve

The point of this operation for me is put the high resolution data in terms of the lower resolution represented by the guassian curve (filter)

I convolve one with the other, and the results seem reasonable. However I do not understand how to interpret my units.

It is my understanding that the final "length" or domain of my convoluted function will be:

len(1) + len(2) - 1.

So if I'm dealing in wavelengths or such units for my original function (1), how do I now map my new convoluted values to wavelengths? The domain of my convoluted function is bigger than either domain other the two original functions.

Do I "center" my convoluted data around the original data (1) and trim the values on the outside?

My understanding of this is limited so I hope the context to the question I've asked is understandable. I can try to elaborate if more information is required.

Thanks in advance,
Chris
 
Mathematics news on Phys.org
I'm going to assume that l1 is the length of your spectrum, l2 the length of your Gaussian kernel, and that l2 is odd. In that case, point i in your original spectrum corresponds to point i + (l2-1)/2 in the convolved spectrum. (So, yes, if you center the old on the new, you'll have the right correspondence.) Also, the length you give, l = l1 + l2 - 1, indicates that the real data are being padded at the ends when you do your convolution. You should not trust the end of the convolved spectrum. Only the central l1 - l2 + 1 values of the convolved data are free from contamination by the padding.
 
Thanks for the reply,
-C
 
Seemingly by some mathematical coincidence, a hexagon of sides 2,2,7,7, 11, and 11 can be inscribed in a circle of radius 7. The other day I saw a math problem on line, which they said came from a Polish Olympiad, where you compute the length x of the 3rd side which is the same as the radius, so that the sides of length 2,x, and 11 are inscribed on the arc of a semi-circle. The law of cosines applied twice gives the answer for x of exactly 7, but the arithmetic is so complex that the...
Back
Top