measurable

A simple shallowly-embedded DSL for dealing with measures.
Log | Files | Refs | README | LICENSE

commit 1c649198095a491f5da41dcba10b92947411bf7e
parent 8be4ff10da353fd6af730a007dcfedb3ebb6c64d
Author: Jared Tobin <jared@jtobin.ca>
Date:   Wed, 23 Sep 2015 08:25:29 +1200

Merge pull request #2 from iblech/patch-1

typo
Diffstat:
Msrc/Measurable/Core.hs | 4++--
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