SchumakerSpline.jl

SchumakerSpline.jl

A simple shape preserving spline implementation in Julia.

A Julia package to create a shape preserving spline. This is a shape preserving spline which is guaranteed to be monotonic and concave/convex if the data is monotonic and concave/convex. It does not use any numerical optimisation and is therefore quick and smoothly converges to a fixed point in economic dynamics problems including value function iteration. Analytical derivatives and integrals of the spline can easily be taken through the evaluate and evaluate_integral functions.

This package has the same basic functionality as the R package called schumaker.

If you want to do algebraic operations on splines you can also use a schumaker spline through the UnivariateFunctions package.

Optional parameters

Gradients.

The gradients at each of the (x,y) points can be input to give more accuracy. If not supplied these are estimated from the points provided. It is also possible to input on the gradients on the edges of the x domain and have all of the intermediate gradients imputed.

Out of sample prediction.

There are three options for out of sample prediction.