topic Re: Convolution and Step Size in LabVIEW
https://forums.ni.com/t5/LabVIEW/Convolution-and-Step-Size/m-p/3018983#M862805
<P>Ah, so my assumption was correct.</P>
<P> </P>
<P>How would I go about normalizing the functions then? Is that dependant on the original functions?</P>Thu, 09 Oct 2014 15:08:32 GMTstwlee2014-10-09T15:08:32ZConvolution and Step Size
https://forums.ni.com/t5/LabVIEW/Convolution-and-Step-Size/m-p/3017893#M862560
<P>I'm pretty sure it's my misunderstanding of how a convolution works or just a general misunderstanding of the LabVIEW program in general, but I seem to be running into a strange issue with the convolution function.</P>
<P> </P>
<P>Attached is the VI for two functions that are supposed to be convoluted. The resulting function LOOKS correct, but I'm more curious about what happens when I change the step size of the two initial functions. As the step size decreases, the convoluted function seems to grow.</P>
<P> </P>
<P>Can anyone tell me if this SHOULD be happening? And if so, WHY is it happening?</P>
<P> </P>
<P>Or am I just doing everything wrong?</P>
<P> </P>
<P>Thanks</P>Wed, 08 Oct 2014 19:22:54 GMThttps://forums.ni.com/t5/LabVIEW/Convolution-and-Step-Size/m-p/3017893#M862560stwlee2014-10-08T19:22:54ZRe: Convolution and Step Size
https://forums.ni.com/t5/LabVIEW/Convolution-and-Step-Size/m-p/3018443#M862701
<P>Dear stwlee,</P>
<P> </P>
<P>welcome to the forum!</P>
<P> </P>
<P>For others struggling to figure out the parameter to change: "step size" = "delta" (default: 1)</P>
<P> </P>
<P>I believe your answer is in the definition of the discrete convolution:</P>
<P><A href="http://zone.ni.com/reference/en-XX/help/371361H-01/lvanls/convolution/" target="_blank">http://zone.ni.com/reference/en-XX/help/371361H-01/lvanls/convolution/</A> or</P>
<P><A href="http://en.wikipedia.org/wiki/Convolution#Discrete_convolution" target="_blank">http://en.wikipedia.org/wiki/Convolution#Discrete_convolution</A></P>
<P> </P>
<P>First of all, no time axes are involved in the discrete convolution. Then, you increase the number of the points, keeping the same maximal amplitude of the function so, your sum is increasing naturally.</P>
<P> </P>
<P>You may want to consider some kind of normalisation <A href="https://www.google.de/search?client=opera&q=normalise+dicrete+convolution&sourceid=opera&ie=UTF-8&oe=UTF-8" target="_blank">https://www.google.de/search?client=opera&q=normalise+dicrete+convolution&sourceid=opera&ie=UTF-8&oe=UTF-8</A></P>
<P> </P>
<P>Cheers,</P>
<P> </P>Thu, 09 Oct 2014 07:41:57 GMThttps://forums.ni.com/t5/LabVIEW/Convolution-and-Step-Size/m-p/3018443#M862701ghighuphu2014-10-09T07:41:57ZRe: Convolution and Step Size
https://forums.ni.com/t5/LabVIEW/Convolution-and-Step-Size/m-p/3018883#M862789
<P>I'm still somwhat unclear as to why the sum increases. I think it sems from my misunderstanding of what a convolution is. Reading those definitions didn't help all that much; much of the information went way above my head.</P>
<P> </P>
<P>Even if I did increase the number of points defining the function, the point values adjust accordingly, meaning that smaller changes in the x result in smaller changes in the y. Therefore, the resulting sum shouldn't increase for each change in time point because the function itself is stillt he same. Unless, of course, the convolution is not being calculted according to what the function looks like but instead using the actual values themselves.</P>
<P> </P>
<P>That brings me to my second point: How is the convolution being calculated without time values? By my meager understanding, a convolution is literally the sum of the overlapping area of two functions as the second inverted function is transposed across the first. Does the convolution VI assume that the bounds of the functions are the same to make this calculation, or does it assume that each point in the array is something like f(x), f(x+1), etc.?</P>
<P> </P>
<P>Speaking of normalization, how would I calculate something like that? I sort of understand WHAT a normalization is, but I'm unsure how to even approach it.</P>
<P> </P>
<P>Thanks.</P>Thu, 09 Oct 2014 14:13:34 GMThttps://forums.ni.com/t5/LabVIEW/Convolution-and-Step-Size/m-p/3018883#M862789stwlee2014-10-09T14:13:34ZRe: Convolution and Step Size
https://forums.ni.com/t5/LabVIEW/Convolution-and-Step-Size/m-p/3018935#M862799
<P>The convolution does not know about step size, it only sees the values in the 1D arrays. If you look at the sum of the values in the arrays, they change as a function of step size and thus the convolution also changes.</P>
<P> </P>
<P>If you multiply the array sum of the two input arrays, you get the sum of the convolution output.</P>
<P> </P>
<P>If you would divide each array by it's sum, the sum of all elements in the convolution will also be one.</P>
<P> </P>
<P>I typically normailize only the convolution kernel to keep the integral of the convoluted array constant, whatever it is.</P>Thu, 09 Oct 2014 14:42:18 GMThttps://forums.ni.com/t5/LabVIEW/Convolution-and-Step-Size/m-p/3018935#M862799altenbach2014-10-09T14:42:18ZRe: Convolution and Step Size
https://forums.ni.com/t5/LabVIEW/Convolution-and-Step-Size/m-p/3018983#M862805
<P>Ah, so my assumption was correct.</P>
<P> </P>
<P>How would I go about normalizing the functions then? Is that dependant on the original functions?</P>Thu, 09 Oct 2014 15:08:32 GMThttps://forums.ni.com/t5/LabVIEW/Convolution-and-Step-Size/m-p/3018983#M862805stwlee2014-10-09T15:08:32Z