A new technique to construct a wavelet transform matching a specified signal with applications to digital, real time, spike, and overlap pattern recognition