cubic spline interpolation with various end conditions. creates the pp-form of the cubic spline.
the following end conditions as given in cond are possible.
- 'complete'
- match slopes at first and last point as given in valc
- 'not-a-knot'
- third derivatives are continuous at the second and second last point
- 'periodic'
- match first and second derivative of first and last point
- 'second'
- match second derivative at first and last point as given in valc
- 'variational'
- set second derivative at first and last point to zero (natural cubic spline)