1D correlation and convolution
Use correlation to compare and convolution to combine vectors of real or complex data.
Overview
The vDSP library provides functions that calculate the convolution and correlation of a signal and a filter. Both operations compute the sliding dot product of the filter and the section of the input signal that the filter is over. What the operation produced depends on whether the stride is positive or negative:
With a positive stride through the filter, the correlation operation computes the similarity between the signal and the filter.
With a negative stride through the filter, the convolution operation computes the effect of the filter on the signal. For example, to apply a low-pass filter to a signal.