focal_calibration icon indicating copy to clipboard operation
focal_calibration copied to clipboard

Small performance improvement in `l2_error` calculation

Open Nirei opened this issue 1 year ago • 0 comments

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.

Nirei avatar Jan 10 '24 16:01 Nirei