foscat.Spline1D =============== .. py:module:: foscat.Spline1D Classes ------- .. autoapisummary:: foscat.Spline1D.Spline1D Module Contents --------------- .. py:class:: Spline1D(nodes, degree=3) .. py:attribute:: degree :value: 3 .. py:attribute:: nodes .. py:method:: cubic_spline_function(x) Evaluate the cubic spline basis function. Args: x (float or array): Input value(s) to evaluate the spline basis function. Returns: float or array: Result of the cubic spline basis function. .. py:method:: eval(x) Compute a 3rd-degree cubic spline with 4-point support. Args: x (float or array): Input value(s) to compute the spline. Returns: indices (array): Indices of the spline support points. coefficients (array): Normalized spline coefficients.