If the average of both active and ref windows are 0, return 0 for the magnitude test