Cubic spline interpolation function

Mainly present to allow the use of it in IQRmodels.

interpcs(x, y, xi)

Arguments

x

Vector with numeric values

y

Vector with numeric values

xi

Value for which to interpolate

Value

Interpolated value (y(xi))