All Projects → rvql → gospline

rvql / gospline

Licence: MIT license
A golang library for spline interpolation

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to gospline

commons-math-interpolation
A partial TypeScript port of the Apache Commons Math Interpolation package, including Akima cubic spline interpolation and LOESS/LOWESS local regression.
Stars: ✭ 18 (-30.77%)
Mutual labels:  cubic-splines

gospline

Golang cubic spline library

This library generates a cubic spline for given points.

Usage

Create a cubic spline

s := gospline.NewCubicSpline([]float64{0, 1, 2, 3}, []float64{0, 0.5, 2, 1.5})

Get an interpolated value

s.At(3.5)

Get an array of interpolated values

s.Range(0, 3, 0.25)

Supported boundaries

First derivation boundary: gospline.NewClampedCubicSpline

Second derivation boundary: gospline.NewNaturalCubicSpline

Installation

Just go get github.com/cnkei/gospline

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].