From b8b9e8a91b51e6689a071dbc05f3da857c762e0d Mon Sep 17 00:00:00 2001 From: Alberto Ruiz Date: Thu, 14 Jan 2010 13:17:44 +0000 Subject: dispf, disps --- lib/Data/Packed/Vector.hs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/Data/Packed/Vector.hs') diff --git a/lib/Data/Packed/Vector.hs b/lib/Data/Packed/Vector.hs index 457da71..ed0e49c 100644 --- a/lib/Data/Packed/Vector.hs +++ b/lib/Data/Packed/Vector.hs @@ -32,6 +32,10 @@ import Numeric.GSL.Vector @\> linspace 5 (-3,7) 5 |> [-3.0,-0.5,2.0,4.5,7.0]@ + +Logarithmic spacing can be defined as follows: + +@logspace n (a,b) = 10 ** linspace n (a,b)@ -} linspace :: Int -> (Double, Double) -> Vector Double linspace n (a,b) = add a $ scale s $ fromList [0 .. fromIntegral n-1] -- cgit v1.2.3