Calculate cross-correlation on given input signal