Hi,
I have two data sets that I want to cross-correlate, let’s say a square pulse and a square pulse surrounded by zeros. I have tried to use ListCorrelate for this, but I keep getting a result that is centered either at the beginning of the pulse or at the end. If I do the calculation by hand then I get the a result that is centered in the middle of the square pulse (as expected). What is going on?
ListCorrelate[ideal, test, 1]/Total[ListCorrelate[ideal, test, 1]]
gives
