goodness_of_fit

jwst.ami.lg_model.goodness_of_fit(data, bestfit, disk_r=8)[source]

Calculate goodness of fit between the data and the fit.

Parameters:
data2D float array

Input image

bestfit2D float array

Fit to input image

disk_rint

Radius of disk

Returns:
float

Goodness of fit