SplineInterpolateFitter#

class astropy.modeling.spline.SplineInterpolateFitter[source]#

Bases: _SplineFitter

Fit 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:
modelSpline1D

The spline model to fit.

xnumpy:array_like

The x data values.

ynumpy:array_like

The y data values.

**kwargspython:dict, optional

Additional keyword arguments:

  • weightsarray-like, optional

    Weights for the data points.

  • bboxarray-like, optional

    The bounding box limits as [xmin, xmax]. Default is [None, None].

Returns:
fitted_modelSpline1D

A copy of the input model with fitted parameters.