SplineInterpolateFitter#
- class astropy.modeling.spline.SplineInterpolateFitter[source]#
Bases:
_SplineFitterFit an interpolating spline.
Methods Summary
__call__(model, x, y, **kwargs)Fit an interpolating spline to data.
Methods Documentation
- __call__(model, x, y, **kwargs)[source]#
Fit an interpolating spline to data.
- Parameters:
- model
Spline1D The spline model to fit.
- xnumpy:array_like
The x data values.
- ynumpy:array_like
The y data values.
- **kwargs
python:dict, optional Additional keyword arguments:
weightsarray-like, optionalWeights for the data points.
bboxarray-like, optionalThe bounding box limits as
[xmin, xmax]. Default is[None, None].
- model
- Returns:
- fitted_model
Spline1D A copy of the input model with fitted parameters.
- fitted_model