Permalink
Browse files

Inline the resample function for better performance

  • Loading branch information...
1 parent c90fe41 commit fe534918171f6b2126337cdc4a3065ec86eba847 @bos committed Jul 14, 2010
Showing with 3 additions and 2 deletions.
  1. +1 −0 Statistics/Resampling.hs
  2. +2 −2 statistics.cabal
View
1 Statistics/Resampling.hs
@@ -52,6 +52,7 @@ resample gen ests numResamples samples = do
MU.write arr k . est $ re
loop (k+1) ers
n = U.length samples
+{-# INLINE resample #-}
-- | Compute a statistical estimate repeatedly over a sample, each
-- time omitting a successive element.
View
4 statistics.cabal
@@ -1,5 +1,5 @@
name: statistics
-version: 0.6.0.1
+version: 0.6.0.2
synopsis: A library of statistical types, data, and functions
description:
This library provides a number of common functions and types useful
@@ -54,7 +54,7 @@ library
build-depends:
base < 5,
erf,
- mwc-random >= 0.5.1.4,
+ mwc-random >= 0.7.0.0,
primitive >= 0.3,
time,
vector >= 0.6.0.2,

0 comments on commit fe53491

Please sign in to comment.