Axes.xcorr(x, y, normed=True, detrend=<function detrend_none>, usevlines=True, maxlags=10, *, data=None, **kwargs) [source]
Plot the cross correlation between x and y.
The correlation with lag k is defined as
, where
is the complex conjugate of
.
| Parameters: |
|
|---|---|
| Returns: |
|
| Other Parameters: |
|
The cross correlation is performed with numpy.correlate() with mode = 2.
Note
In addition to the above described arguments, this function can take a data keyword argument. If such a data argument is given, the following arguments are replaced by data[<arg>]:
Objects passed as data must support item access (data[<arg>]) and membership test (<arg> in data).
© 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.0.0/api/_as_gen/matplotlib.axes.Axes.xcorr.html