piecewise linear and cubic Hermite interpolation

Version on this page:
LTS Haskell 12.22:
Stackage Nightly 2018-12-12:
Latest on Hackage:

See all snapshots interpolation appears in

BSD3 licensed by Henning Thielemann
Maintained by Henning Thielemann

Module documentation for

There are no documented modules for this package.

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 hmatrix. 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.



* Hermite1 interpolation: different order of coefficients

Interleave node values and derivatives
in order to get a narrow banded Gramian matrix
from a sampled interpolation basis.

Rename from 'cubic' to 'hermite1'.
Depends on 2 packages:
Used by 1 package:
comments powered byDisqus