Parameters
Double[] x
sample points (N+1), sorted ascending
Double[] c0
Zero order spline coefficients (N)
Double[] c1
First order spline coefficients (N)
Double[] c2
second order spline coefficients (N)
Double[] c3
third order spline coefficients (N)