### Navigation

- index
- modules |
- next |
- previous |
- NumPy v1.3 Manual (DRAFT) »
- NumPy Reference »
- Routines »
- Statistics »

# numpy.correlate

`numpy.``correlate`(a, v, mode='valid')

  Discrete, linear correlation of two 1-dimensional sequences.

  This function is equivalent to

      >>> np.convolve(a, v[::-1], mode=mode)

  where `v[::-1]` is the reverse of v.

  Parameters: | a, v : array_like Input sequences. mode : {‘valid’, ‘same’, ‘full’}, optional Refer to the convolve docstring. Note that the default is valid, unlike convolve, which uses full.

  See also

  `convolve`
    Discrete, linear convolution of two one-dimensional sequences.

### Navigation

- index
- modules |
- next |
- previous |
- NumPy v1.3 Manual (DRAFT) »
- NumPy Reference »
- Routines »
- Statistics »