Machine Learning, Numerical Methods, Cubicspline.
interpolant for the knots and we must rearrange the values to ease the process :(1, 0), (2, 1), (3, 0), (4,1), (5,0) then we know the specific knots note that: k1=k5=0 so we consider i=2, 3, 4 only then we substitute the corresponding values so that: which in turn create a system of linear