Generate a spline basis, slightly adapted from : "Splines, knots, and penalties", Eilers 2010.
Useful links