webbpsf_ext.robust.polyfit¶
- webbpsf_ext.robust.polyfit(inputX, inputY, order, iterMax=25)[source]¶
Outlier resistance two-variable polynomial function fitter.
Based on the robust_poly_fit routine in the AstroIDL User’s Library.
Unlike robust_poly_fit, two different polynomial fitters are used because np.polyfit does not support non-uniform weighting of the data. For the weighted fitting, the SciPy Orthogonal Distance Regression module (scipy.odr) is used.