packages feed

hmatrix-gsl-stats 0.1.1.5 → 0.1.2.1

raw patch · 6 files changed

+24/−36 lines, 6 files

Files

CHANGES view
@@ -21,3 +21,9 @@  0.1.1.5: 		fixed y limits in Histogram2D.fromLimitsIO++0.1.2.1:+		fixed Histogram(2D)PDF sampling++0.1.2.2:+		
INSTALL view
@@ -1,35 +1,17 @@ ------------------------------------------------ A simple signal processing library for Haskell+A binding to GSL statistics library for Haskell -----------------------------------------------  INSTALLATION -Recommended method (ok in Ubuntu/Debian systems):-    $ cabal install hsignal--INSTALLATION ON WINDOWS ------------------------------------------1) Install a recent ghc (e.g. ghc-6.10.3)--2) Install cabal-install. A binary for windows can be obtained from:--   http://www.haskell.org/cabal/release/cabal-install-0.6.2/cabal.exe--   Put it somewhere in the path, for instance in c:\ghc\ghc-6.10.3\bin--3) Download and uncompress hmatrix-x.y.z.tar.gz from Hackage:--   http://hackage.haskell.org/cgi-bin/hackage-scripts/package/hmatrix--4) Open a terminal, cd to the hmatrix folder, and run--   > cabal install--5) Download and uncompress hsignal-x.y.z.tar.gz from Hackage:--   http://hackage.haskell.org/cgi-bin/hackage-scripts/package/hsignal+cabal install hmatrix-gsl-stats -6) Open a terminal, cd to the hsignal folder, and run+OR -   > cabal install+tar xzf hmatrix-gsl-stats-x.y.z.tar.gz+cd hmatrix-gsl-stats+runhaskell Setup.lhs configure+runhaskell Setup.lhs build+runhaskell Setup.lhs hadock+runhaskell Setup.lhs install 
LICENSE view
@@ -1,2 +1,2 @@-Copyright Alberto Ruiz 2006-2007+Copyright A.V.H. McPhail 2010 GPL license
hmatrix-gsl-stats.cabal view
@@ -1,5 +1,5 @@ Name:               hmatrix-gsl-stats-Version:            0.1.1.5+Version:            0.1.2.1 License:            GPL License-file:       LICENSE Copyright:          (c) A.V.H. McPhail 2010
lib/Numeric/GSL/Histogram.hs view
@@ -502,12 +502,12 @@                             withForeignPtr h $ \h' -> check "pdf_init" $ histogram_pdf_init p'' h'                         return $ P p' --- | given a randomm from the uniform distribution [0,1], draw a random sample from the PDF-sample :: HistogramPDF -> Double-sample (P p) = unsafePerformIO $ withForeignPtr p $ \p' -> histogram_pdf_sample p'+-- | given a random number from the uniform distribution [0,1], draw a random sample from the PDF+sample :: HistogramPDF -> Double -> Double+sample (P p) r = unsafePerformIO $ withForeignPtr p $ \p' -> histogram_pdf_sample p' r  foreign import ccall "gsl-histogram.h gsl_histogram_pdf_init" histogram_pdf_init :: PDFHandle -> HistHandle -> IO CInt-foreign import ccall "gsl-histogram.h gsl_histogram_pdf_sample" histogram_pdf_sample :: PDFHandle -> IO Double+foreign import ccall "gsl-histogram.h gsl_histogram_pdf_sample" histogram_pdf_sample :: PDFHandle -> Double -> IO Double  ----------------------------------------------------------------------------- -----------------------------------------------------------------------------
lib/Numeric/GSL/Histogram2D.hs view
@@ -589,11 +589,11 @@                                                 return $ P p'  -- | given a randomm from the uniform distribution [0,1], draw a random sample from the PDF-sample :: Histogram2DPDF -> Double-sample (P p) = unsafePerformIO $ withForeignPtr p $ \p' -> histogram2d_pdf_sample p'+sample :: Histogram2DPDF -> Double -> Double+sample (P p) r = unsafePerformIO $ withForeignPtr p $ \p' -> histogram2d_pdf_sample p' r  foreign import ccall "gsl-histogram2d.h gsl_histogram2d_pdf_init" histogram2d_pdf_init :: PDFHandle -> Hist2DHandle -> IO CInt-foreign import ccall "gsl-histogram2d.h gsl_histogram2d_pdf_sample" histogram2d_pdf_sample :: PDFHandle -> IO Double+foreign import ccall "gsl-histogram2d.h gsl_histogram2d_pdf_sample" histogram2d_pdf_sample :: PDFHandle -> Double -> IO Double  ----------------------------------------------------------------------------- -----------------------------------------------------------------------------