Compute the jittering distance and output it in debug