Ciao. Qui c'è il codice in JAVA per le natural cubic splines.

http://www.cse.unsw.edu.au/~lambert/splines/