Method and device for detecting a similarity in the shape of sampled signals