A system and method that computes correlation between a first signal and a
second signal. The correlation is computed as a ratio of a numerator and
a denominator. The numerator may be computed similar to computing the
numerator of the Pearson correlation. The denominator may be computed by
multiplying the variance of the second signal and the difference between
the maximum and minimum value of the first signal. A threshold, which may
be programmable, may be used to determine if the first and second signal
match by comparing the numerator and the product of the threshold and the
denominator. If the numerator is larger than the product then the first
signal and the second signal match, otherwise, there is no match. The
first signal may be a sliding window of a signal. The window may be slid
over the signal until a match is found between the window and the second
signal.