commit 3fe9a52eaa3ee00142dfb9f48285fb1b943a293e
parent 8be4ff10da353fd6af730a007dcfedb3ebb6c64d
Author: Ingo Blechschmidt <iblech@web.de>
Date: Tue, 22 Sep 2015 12:59:43 +0200
typo
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/Measurable/Core.hs b/src/Measurable/Core.hs
@@ -67,8 +67,8 @@ instance MonadTrans (ContT r) where
-- >>> let mu = fromSamples [-1, 0, 1]
-- >>> expectation mu
-- 0.0
--- >>> expectation mu
--- 1.0
+-- >>> variance mu
+-- 0.6666666666666666
integrate :: (a -> Double) -> Measure a -> Double
integrate = flip runCont