interpolation 0.1.0.1 → 0.1.0.2
raw patch · 4 files changed
+27/−2 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- interpolation.cabal +2/−2
- src/Numeric/Interpolation/Basis.hs +16/−0
- src/Numeric/Interpolation/Basis/Compact.hs +3/−0
- src/Numeric/Interpolation/Basis/Full.hs +6/−0
interpolation.cabal view
@@ -1,5 +1,5 @@ Name: interpolation-Version: 0.1.0.1+Version: 0.1.0.2 License: BSD3 License-File: LICENSE Author: Henning Thielemann@@ -47,7 +47,7 @@ default: True Source-Repository this- Tag: 0.1.0.1+ Tag: 0.1.0.2 Type: darcs Location: http://hub.darcs.net/thielema/interpolation/
src/Numeric/Interpolation/Basis.hs view
@@ -1,8 +1,24 @@+{- |+Generate lists of basis functions with respect to interpolation nodes+and generate functions from coefficients with respect to these bases.++A basis function is one where all but one features are zero.+E.g. in a linear basis a basis function is one at one node,+and zero at all the other interpolation nodes.++You need the basis functions+for setting up the matrix for a linear least-squares solver for curve fitting.+The solver computes some coefficients+and in a second step you convert these coefficients+to the piecewise interpolation function.+-} module Numeric.Interpolation.Basis (+ -- * Interpolation basis functions Compact.linear, Compact.hermite1, Compact.cubicLinear, Compact.cubicParabola,+ -- * Construct functions from the coefficients with respect to a basis coefficientsToLinear, coefficientsToHermite1, coefficientsToCubicLinear,
src/Numeric/Interpolation/Basis/Compact.hs view
@@ -1,3 +1,6 @@+{- |+Interpolation basis functions represented with a minimum of required nodes.+-} module Numeric.Interpolation.Basis.Compact ( linear, hermite1, cubicLinear, cubicParabola, ) where
src/Numeric/Interpolation/Basis/Full.hs view
@@ -1,3 +1,9 @@+{- |+Interpolation basis functions using all given nodes.+The represented functions are equivalent to the ones from+"Numeric.Interpolation.Basis.Compact"+but less efficient for evaluation.+-} module Numeric.Interpolation.Basis.Full (linear, hermite1) where import qualified Numeric.Interpolation.NodeList as Nodes