Spline1D

class specviz.analysis.Spline1D[source] [edit on github]

Bases: astropy.modeling.Fittable1DModel

Perform a spline fit

Notes

See Fittable1DModel for further details.

The spline function is based on UnivariateSpline

Attributes Summary

degree
param_names
smooth

Methods Summary

evaluate(x, degree, smooth) Evaluate the spline

Attributes Documentation

degree
param_names = ('degree', 'smooth')
smooth

Methods Documentation

evaluate(x, degree, smooth)[source] [edit on github]

Evaluate the spline

Parameters:

x: numpy.ndarray

The wavelengths to evaluate over.

degree: int

The degree of spline to evaluate.

smooth: float or None

The smoothing factor used to choose the number of knots.

Returns:

The evaluated spline