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

Versions | 0.0, 0.1, 0.1.0.1, 0.1.0.2, 0.1.0.3 |
---|---|

Change log | ChangeLog |

Dependencies | base (==4.*), gnuplot (>=0.5.2 && <0.6), hmatrix (==0.15.*), hmatrix-banded (==0.0.*), interpolation, random (>=1.0 && <1.2), utility-ht (>=0.0.1 && <0.1) [details] |

License | BSD-3-Clause |

Author | Henning Thielemann |

Maintainer | Henning Thielemann <haskell@henning-thielemann.de> |

Category | Math |

Home page | http://hub.darcs.net/thielema/interpolation/ |

Source repo | this: darcs get http://hub.darcs.net/thielema/interpolation/ --tag 0.1.0.2 head: darcs get http://hub.darcs.net/thielema/interpolation/ |

Uploaded | by HenningThielemann at Mon Nov 13 10:01:44 UTC 2017 |

Distributions | LTSHaskell:0.1.0.3, NixOS:0.1.0.3, Stackage:0.1.0.3 |

Executables | interpolation-fit, interpolation-plot |

Downloads | 1256 total (29 in the last 30 days) |

Rating | (no votes yet) [estimated by rule of succession] |

Your Rating | |

Status | Docs available [build log] Last success reported on 2017-11-13 [all 1 reports] Hackage Matrix CI |

## Modules

[Index]

## Flags

Name | Description | Default | Type |
---|---|---|---|

buildexamples | Build example executables | Disabled | Automatic |

hmatrix | Build examples that depend on hmatrix | Enabled | Automatic |

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

## Downloads

- interpolation-0.1.0.2.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)