卷积、互相关、自相关可视化比较
g(τ)g(\tau ) is an even function, (g(τ)=g(τ))(g(-\tau)=g(\tau) ), so convolution is equivalent to correlation.

convolution (fg)(t)=f(τ)g(tτ)dτ . (f∗g)(t) = \int_{-∞}^{∞} f (τ) g (t-τ) dτ\,.
cross-correlation (fg)(τ)=f(t)g(t+τ)dt . (f \star g)(τ) = \int_{-∞}^{∞} \overline{f (t)} g (t+τ) dt\,.

1.Express each function in terms of a dummy variable τ\tau.

2.Reflect one of the functions: g(τ)g(\tau )g(τ).g(-\tau ).

3.Add a time-offset, t, which allows g(tτ)g(t-\tau ) to slide along the τ\tau -axis.

4.Start t at −∞ and slide it all the way to +∞. Wherever the two functions intersect, find the integral of their product. In other words, compute a sliding, weighted-sum of function f(τ)f(\tau ), where the weighting function is g(τ).g(-\tau ).

卷积、互相关、自相关可视化比较

In this example, the red-colored “pulse”, g(τ)g(\tau ),is an even function (g(τ)=g(τ))(g(-\tau)=g(\tau) ), so convolution is equivalent to correlation. A snapshot of this “movie” shows functions g(tτ)g(t-\tau )and f(τ)f(\tau ) (in blue) for some value of parameter tt, which is arbitrarily defined as the distance from the τ=0\tau =0 axis to the center of the red pulse. The amount of yellow is the area of the product f(τ)g(tτ)f(\tau )\cdot g(t-\tau ), computed by the convolution/correlation integral. The movie is created by continuously changing tt and recomputing the integral. The result (shown in black) is a function of tt, but is plotted on the same axis as τ\tau , for convenience and comparison.

卷积、互相关、自相关可视化比较

In this depiction,f(τ)f(\tau ) could represent the response of an RC circuit to a narrow pulse that occurs at τ=0\tau =0. In other words, if g(τ)=δ(τ)g(\tau )=\delta (\tau ), the result of convolution is just f(t)f(t). But when g(τ)g(\tau ) is the wider pulse (in red), the response is a “smeared” version of f(t)f(t). It begins at t=0.5t=-0.5, because we defined tt as the distance from the τ=0\tau =0 axis to the center of the wide pulse (instead of the leading edge).

卷积、互相关、自相关可视化比较

Convolution https://en.wikipedia.org/wiki/Convolution
Cross-correlation https://en.wikipedia.org/wiki/Cross-correlation

相关文章:

  • 2021-04-15
  • 2021-12-18
  • 2021-05-04
  • 2021-05-28
  • 2021-11-19
  • 2021-07-30
  • 2022-12-23
  • 2021-11-26
猜你喜欢
  • 2022-12-23
  • 2021-12-26
  • 2021-07-22
  • 2021-05-19
  • 2022-12-23
  • 2021-12-16
  • 2021-05-20
相关资源
相似解决方案