cubic_spline#
module wntr.utils.polynomial_interpolation
- cubic_spline(x1, x2, f1, f2, df1, df2)[source]#
Method to compute the coefficients of a smoothing polynomial.
- Parameters:
x1 (float) – point on the x-axis at which the smoothing polynomial begins
x2 (float) – point on the x-axis at which the smoothing polynomial ens
f1 (float) – function evaluated at x1
f2 (float) – function evaluated at x2
df1 (float) – derivative evaluated at x1
df2 (float) – derivative evaluated at x2
- Return type:
A tuple with the smoothing polynomail coefficients starting with the cubic term.