skyllh.utils package
Submodules
skyllh.utils.spline module
- skyllh.utils.spline.make_spline_1d(x, y, kind='linear', **kwargs)
Creates a 1D spline for the function y(x) using
scipy.interpolate.interp1d
.- Parameters:
x (array_like) – The x values.
y (array_like) – The y values.
kind (str) – The kind of the spline. See the
scipy.interpolate.interp1d
documentation for possible values. Default is'linear'
.**kwargs – Additional keyword arguments are passed to the
interp1d
function.
- Returns:
spline – The created 1D spline instance.