focal_calibration
focal_calibration copied to clipboard
Small performance improvement in `l2_error` calculation
When calculating the L2 error for ECE, the square root of the sum is taken repeatedly inside the loop. This result is unused in all but the last iteration so a minimal performance gain may be obtained by taking this calculation out of the loop and doing it only once before returning.