Golang cubic spline library
This library generates a cubic spline for given points.
s := gospline.NewCubicSpline([]float64{0, 1, 2, 3}, []float64{0, 0.5, 2, 1.5})s.At(3.5)s.Range(0, 3, 0.25)
First derivation boundary: gospline.NewClampedCubicSpline
Second derivation boundary: gospline.NewNaturalCubicSpline
Just
go get github.com/cnkei/gospline