interpolation-0.1.0.3: interpolation.cabal
Name: interpolation
Version: 0.1.0.3
License: BSD3
License-File: LICENSE
Author: Henning Thielemann
Maintainer: Henning Thielemann <haskell@henning-thielemann.de>
Homepage: http://hub.darcs.net/thielema/interpolation/
Category: Math
Synopsis: piecewise linear and cubic Hermite interpolation
Description:
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.
Tested-With: GHC==7.4.2, GHC==7.6.3, GHC==7.8.4, GHC==7.10.1
Cabal-Version: >=1.8
Build-Type: Simple
Extra-Source-Files:
ChangeLog
Flag buildExamples
description: Build example executables
default: False
Flag hmatrix
description: Build examples that depend on hmatrix
default: True
Source-Repository this
Tag: 0.1.0.3
Type: darcs
Location: http://hub.darcs.net/thielema/interpolation/
Source-Repository head
Type: darcs
Location: http://hub.darcs.net/thielema/interpolation/
Library
Build-Depends:
utility-ht >=0.0.1 && <0.1,
base >=4 && <5
GHC-Options: -Wall
Hs-Source-Dirs: src, private
Exposed-Modules:
Numeric.Interpolation.NodeList
Numeric.Interpolation.Piece
Numeric.Interpolation.Piecewise
Numeric.Interpolation.Type
Numeric.Interpolation.Basis
Numeric.Interpolation.Basis.Compact
Numeric.Interpolation.Basis.Full
Numeric.Interpolation.Sample
Other-Modules:
Numeric.Interpolation.Private.Piece
Numeric.Interpolation.Private.Basis
Numeric.Interpolation.Private.List
Executable interpolation-plot
Main-Is: Plot.hs
Hs-Source-Dirs: example
GHC-Options: -Wall
If flag(buildExamples)
Build-Depends:
interpolation,
gnuplot >=0.5.2 && <0.6,
utility-ht >=0.0.9 && <0.1,
base >=4.5 && <5
Else
Buildable: False
Executable interpolation-fit
Main-Is: Fit.hs
Hs-Source-Dirs: example
GHC-Options: -Wall
If flag(buildExamples) && flag(hmatrix)
Build-Depends:
interpolation,
hmatrix-banded >=0.0 && <0.1,
hmatrix >=0.15 && <0.16,
random >=1.0 && <1.2,
gnuplot >=0.5.2 && <0.6,
utility-ht >=0.0.9 && <0.1,
base >=4.5 && <5
Else
Buildable: False
Test-Suite interpolation-test
Type: exitcode-stdio-1.0
Main-Is: Test.hs
Other-Modules:
Test.Piece
Test.Sample
Test.Overlap
Numeric.Interpolation.Private.Piece
Hs-Source-Dirs: test, private
GHC-Options: -Wall
Build-Depends:
interpolation,
QuickCheck >=2.4 && <3,
utility-ht >=0.0.9 && <0.1,
array >=0.4 && <0.6,
containers >=0.4 && <0.7,
base >=4.5 && <5