linearfit¶
A module that provides algorithms for performing linear fits between sets of 2D points.
| Authors: | Mihai Cara, Warren Hack (contact: help@stsci.edu) |
|---|
-
jwst.tweakreg.linearfit.iter_linear_fit(xy, uv, xyindx=None, uvindx=None, xyorig=None, uvorig=None, fitgeom='general', nclip=3, sigma=3.0, center=None)[source]¶ Compute iteratively using sigma-clipping linear transformation parameters that fit
xysources touvsources.
-
jwst.tweakreg.linearfit.build_fit_matrix(rot, scale=1)[source]¶ Create an affine transformation matrix (2x2) from the provided rotation and scale transformations.
Parameters: Returns: matrix – A 2x2
numpy.ndarraycontaining coefficients of a liniear transformation.Return type: