Cross-correlate two N-dimensional arrays.
Cross-correlate in1 and in2, with the output size determined by the mode argument.
Parameters : | in1 : array_like
in2 : array_like
mode : str {‘full’, ‘valid’, ‘same’}, optional
|
---|---|
Returns : | correlate : array
|
Notes
The correlation z of two arrays x and y of rank d is defined as:
- z[...,k,...] = sum[..., i_l, ...]
- x[..., i_l,...] * conj(y[..., i_l + k,...])