Splines:
It is a piecewise fit and therefore can be utilized if big amounts of accurate data is available. Spline functions let small subsets of data and fit these along lower order polynomials. It is a significant technique utilized in a broad range of applications. The interpolating polynomial might be linear, cubic, quadratic etc.
The cubic spline functions are the most widely utilized. Letting two arbitrary points xi and xi + 1 at which the function f (x) is to be determined
The cubic that passes through these points is provided as
fi (x) = a0 + a1 xi + a2 x2i + a3 x3i ... for x among x i and x i + 1
By Substituting x = xi and xi + 1, we obtain, respectively
As there are 4 constants to be find out, other 2 conditions are attained by using the continuity of first and second derivatives at xi & xi + 1 (for smooth transition).
The cubic fi (x) over xi = x = xi +1 is get as
Here, Δ xi = xi + 1 - x