interpolation

piecewise linear and cubic Hermite interpolation

http://hub.darcs.net/thielema/interpolation/

Version on this page:0.1.1
LTS Haskell 22.36:0.1.1.2
Stackage Nightly 2024-10-03:0.1.1.2
Latest on Hackage:0.1.1.2

See all snapshots interpolation appears in

BSD-3-Clause licensed by Henning Thielemann
Maintained by Henning Thielemann
This version can be pinned in stack with:interpolation-0.1.1@sha256:51626c9a09fc562e27ac790f9fe85b383c901d2236cad68e0310b5d6ae299cf0,3685
Depends on 2 packages(full list with versions):

Represent real functions by linear or cubic polynomial segments. The package provides both data structures for efficient lookup of interpolation intervals, and computation of basis functions.

There are two examples that can be built with

cabal install -fbuildExamples
  • example/Plot.hs: Interpolate a sinus curve using piecewise linear interpolation and piecewise Hermite cubic interpolation. For the latter one we provide the derivatives of the sinus function at the interpolation nodes.

  • example/Fit.hs: Demonstrates how to use the basis functions for fitting an interpolation function to a given function using a linear least squares solver like from lapack. We use a distorted sinus as target.

The package needs only Haskell 98. Most of the package dependencies are only needed for the examples and are only installed if you enable to build them.