summaryrefslogtreecommitdiff
path: root/lib/BenchShow/Analysis.hs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/BenchShow/Analysis.hs')
-rw-r--r--lib/BenchShow/Analysis.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/BenchShow/Analysis.hs b/lib/BenchShow/Analysis.hs
index 827cfb2..a61ad5d 100644
--- a/lib/BenchShow/Analysis.hs
+++ b/lib/BenchShow/Analysis.hs
@@ -307,7 +307,7 @@ analyzeBenchmark randGen pcols rcols samples = do
return (replicate n Nothing, replicate n Nothing)
(means, devs) <-
- if useBootstrap
+ if useBootstrap && length samples >= 3
then do
(ms, ds) <- fmap unzip $ estimateMeanAndStdDev randGen vectors
return (map estPoint ms, map estPoint ds)