Comparing two time domain signals in a scale and shift-invariant way
First remove the DC offset (C2) from each signal by subtracting the average level from each sample, then removing the arbitrary scaling (C1) of each signal by dividing each sample by the average sample magnitude.