Can convolution be used to measure the difference between two sequences?

77 Views Asked by At

Say I have an infinite sequence $S_1$ and another finite sequence $S_2$.

If I calculate $$ E = S_1 ∗ S_2 $$ does it somehow reflect whether $S_2$ appears somewhere in $S_1$?

What if an approximate version of $S_2$ does appear in $S_1$?