interpolation: piecewise linear and cubic Hermite interpolation

[ bsd3, library, math ] [ Propose Tags ] [ Report a vulnerability ]

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.

Flags

Automatic Flags
NameDescriptionDefault
buildexamples

Build example executables

Disabled
hmatrix

Build examples that depend on hmatrix

Enabled

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

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.0, 0.1, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.1.1, 0.1.1.1, 0.1.1.2
Dependencies base (>=4 && <5), gnuplot (>=0.5.2 && <0.6), hmatrix (>=0.15 && <0.16), interpolation, random (>=1.0 && <1.1), utility-ht (>=0.0.1 && <0.1) [details]
Tested with ghc ==7.4.2, ghc ==7.6.3, ghc ==7.8.2
License BSD-3-Clause
Author Henning Thielemann
Maintainer Henning Thielemann <haskell@henning-thielemann.de>
Category Math
Home page http://code.haskell.org/~thielema/interpolation/
Source repo this: darcs get http://code.haskell.org/~thielema/interpolation/ --tag 0.0
head: darcs get http://code.haskell.org/~thielema/interpolation/
Uploaded by HenningThielemann at 2014-08-19T09:57:41Z
Distributions LTSHaskell:0.1.1.2, NixOS:0.1.1.2, Stackage:0.1.1.2
Reverse Dependencies 1 direct, 0 indirect [details]
Executables interpolation-fit, interpolation-plot
Downloads 5112 total (36 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Successful builds reported [all 1 reports]