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 ...
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe