I am trying to find the autocorrelation function on the intensity of a pixel over time stored in an array "Intensity". Usually one would expect the highest point to be at t = 0 and then decay. I am getting a random mess.
I checked my code with multiple posts on here regarding autocorrelation such as Autocorrelation: numpy versus FFT I am working in python
correlation = np.correlate(Intensity, Intensity, mode='full')/Intensity.size correlation = correlation[correlation.size//2:] plt.plot(range(0,len(correlation)),correlation) plt.show()
You might say well maybe your data looks very similar all around, but then either way why would the highest value not be at t = 0? its not even close. I feel like I must be doing something wrong