[Haskell-cafe] HMatrix Vector/Matrix interpolation ala Matlab interp/interp2 ??
Henning Thielemann
lemming at henning-thielemann.de
Sat Jan 22 17:24:41 CET 2011
On Sat, 22 Jan 2011, gutti wrote:
> I'm looking for Vector and especially Matric interpolation ala:
>
> z = interp2 (xMatrix, yMatrix, zMatrix, x, y)
>
> - x and y can be single values or also vectors or matrices
> - indeally with the options nearest, linear, quadratic, qubic..
>
> Any hope that there is something similar especially using the HMatrix
> matrices (Matrix Double). - If I have to code it any suggestions ?
Here is the power of Haskell - I have implemented some interpolations in
terms of Vector spaces, that is you can interpolate Vectors, Matrices,
Functions, or whatever you like:
http://code.haskell.org/synthesizer/core/src/Synthesizer/Interpolation/Module.hs
However this code is specialised to interpolate between adjacent objects
in a stream, and needs numeric-prelude, and you have to declare an
instance for
Algebra.Module.C Double (HMatrix Double)
and this would be an orphan instance that should better go to an
official separate package ...
More information about the Haskell-Cafe
mailing list