match amplitudes of two datasets