interpolation: piecewise linear and cubic Hermite interpolation
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 likefrom
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.
Modules
[Index] [Quick Jump]
Flags
Automatic Flags
Name | Description | Default |
---|---|---|
buildexamples | Build example executables | Disabled |
lapack | Build examples that depend on lapack | Enabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- interpolation-0.1.1.2.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
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 |
---|---|
Change log | ChangeLog |
Dependencies | base (>=4 && <5), comfort-array (>=0.5.1 && <0.6), comfort-array-shape (>=0.0 && <0.1), gnuplot (>=0.5.6 && <0.6), interpolation, lapack (>=0.4 && <0.5), random (>=1.0 && <1.2), tfp (>=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.4, ghc ==7.10.1 |
License | BSD-3-Clause |
Author | Henning Thielemann |
Maintainer | Henning Thielemann <haskell@henning-thielemann.de> |
Revised | Revision 1 made by HenningThielemann at 2024-10-26T18:12:33Z |
Category | Math |
Home page | https://hub.darcs.net/thielema/interpolation/ |
Source repo | this: darcs get https://hub.darcs.net/thielema/interpolation/ --tag 0.1.1.2 head: darcs get https://hub.darcs.net/thielema/interpolation/ |
Uploaded | by HenningThielemann at 2021-08-07T09:51:46Z |
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] Last success reported on 2021-08-07 [all 1 reports] |