summaryrefslogtreecommitdiff
path: root/examples/pinv.hs
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2010-02-03 17:53:51 +0000
committerAlberto Ruiz <aruiz@um.es>2010-02-03 17:53:51 +0000
commit3f5bf5985d3da0e4d01cd9c126cb781cb6fc28ef (patch)
treef4ff2376e550668e19912b96e3ad88979a52cfb3 /examples/pinv.hs
parentab5a2c1c8b4ecd7f8d9d9823d9976410aa94bb18 (diff)
updated examples, removed Util module
Diffstat (limited to 'examples/pinv.hs')
-rw-r--r--examples/pinv.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pinv.hs b/examples/pinv.hs
index cab8fc6..7de50b8 100644
--- a/examples/pinv.hs
+++ b/examples/pinv.hs
@@ -3,7 +3,7 @@ import Graphics.Plot
3import Text.Printf(printf) 3import Text.Printf(printf)
4 4
5expand :: Int -> Vector Double -> Matrix Double 5expand :: Int -> Vector Double -> Matrix Double
6expand n x = fromColumns $ constant 1 (dim x): map (x^) [1 .. n] 6expand n x = fromColumns $ map (x^) [0 .. n]
7 7
8polynomialModel :: Vector Double -> Vector Double -> Int 8polynomialModel :: Vector Double -> Vector Double -> Int
9 -> (Vector Double -> Vector Double) 9 -> (Vector Double -> Vector Double)