I ended up taking the absolute value of each signal, then using the Pythagorean theorem with those absolute values, and then multiplying by the sign of the average of the in phase and out of phase. This worked relatively well, and definitely works for the amplitudes. However, it doesn't quite...