Natural cubic spline (source code)

= Natural cubic spline

A natural cubic spline is linear beyond its two outer knots, equivalently its second derivative vanishes at those knots.