ols_line

jwst.refpix.irs2_subtract_reference.ols_line(x, y)[source]

Fit a straight line using ordinary least squares.

Parameters:
xndarray

Array of independent variables

yndarray

Array of dependent variables

Returns:
interceptfloat

Intercept of straight line fit

slopefloat

Slope of straight line fit