bspline_templates¶
- grizli.utils.bspline_templates(wave, degree=3, df=6, get_matrix=False, log=False, clip=0.0001, minmax=None)[source]¶
B-spline basis functions, modeled after
splines
- Parameters
- wavearray-like
The wavelength array.
- degreeint
The degree of the B-spline basis functions.
- dfint
The number of degrees of freedom.
- get_matrixbool
If True, return the basis function matrix.
- logbool
If True, use the logarithm of the wavelength array.
- clipfloat
The threshold for clipping the basis functions.
- minmaxtuple
The minimum and maximum values for the wavelength array.
- Returns
- basisarray-like
The B-spline basis functions.
- tempOrderedDict
The B-spline templates.