width_residual#
- esis.optics.width_residual(footprints, edges, clip=3.0)[source]#
Compute the root-mean-square error of the width of every window.
The width across a row is the right crossing minus the left, and down a column the bottom minus the top, measured and modelled at the same rows and columns, so the residual is blind to where a window sits and sees only how large it is. Every error is clipped at clip pixels.
- Parameters:
footprints (list[AbstractCartesian2dVectorArray]) – The predicted outline of each window, in pixels.
edges (QTable) – Measured crossings, see
measure_edges().clip (float) – The error, in pixels, beyond which a width counts as no worse.
- Return type: