barak.interp.CubicSpline.set_d2¶
- CubicSpline.set_d2(firstderiv=None, lastderiv=None, verbose=False)[source]¶
Calculates the second derivative of a cubic spline function y = f(x) for each value in array x. This is called by __init__() when a new class instance is created.
Parameters : firstderiv : float, (None)
1st derivative of f(x) at x[0]. If None, then 2nd derivative is set to 0 (‘natural’).
lastderiv : float (None)
1st derivative of f(x) at x[-1]. If None, then 2nd derivative is set to 0 (‘natural’).