# interpolation: piecewise linear and cubic Hermite interpolation

[ bsd3, library, math ] [ Propose Tags ]

Represent real functions by linear or cubic 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.

Versions [faq] 0.0, 0.1, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.1.1, 0.1.1.1 base (==4.*), gnuplot (>=0.5.2 && <0.6), hmatrix (==0.15.*), interpolation, random (==1.0.*), utility-ht (>=0.0.1 && <0.1) [details] BSD-3-Clause Henning Thielemann Henning Thielemann Math http://code.haskell.org/~thielema/interpolation/ this: darcs get http://code.haskell.org/~thielema/interpolation/ --tag 0.0head: darcs get http://code.haskell.org/~thielema/interpolation/ by HenningThielemann at Tue Aug 19 09:57:41 UTC 2014 LTSHaskell:0.1.1.1, NixOS:0.1.1.1, Stackage:0.1.1.1 interpolation-fit, interpolation-plot 2690 total (243 in the last 30 days) (no votes yet) [estimated by Bayesian average] λ λ λ Docs available Successful builds reported

## Flags

NameDescriptionDefaultType
buildexamples

Build example executables

DisabledAutomatic
hmatrix

Build examples that depend on hmatrix

EnabledAutomatic

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info