Defining and computing cubic splines - Mesquita, Teresa A. (2018)