Spline1D

class specviz.analysis.Spline1D(degree=3, smooth=1, **kwargs)[source]

Bases: astropy.modeling.core.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]

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:

Return type:

The evaluated spline