Is it possible to perform circular cross / autocorrelation on 1D arrays with the numpy / scipy / matplotlib function? I looked at numpy.correlate () and matplotlib.pyplot.xcorr (based on the numpy function), and both cannot seem to do circular cross-correlation.
To illustrate the difference, I will use the example array from [1, 2, 3, 4]. With circular correlation, a periodic assumption is made, and lag 1 looks like [2, 3, 4, 1]. I found that python functions seem to use null padding, i.e. [2, 3, 4, 0]. Is there a way to get these functions to perform circular correlation? If not, is there a standard workaround for circular correlations?
python numpy scipy matplotlib signal-processing
Lambert_w
source share