Copyright | (c) Edward Kmett 2013 |
---|---|
License | BSD3 |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell98 |
Documentation
A quantity with a lower-bound on its probability mass. This represents
a 'probable value' as a Monad
that you can use to calculate progressively
less likely consequences.
NB: These probabilities are all stored in the log domain. This enables us to retain accuracy despite very long multiplication chains. We never add these probabilities so the additional overhead of working in the log domain is never incurred, except on transitioning in and out.
This is most useful for discrete types, such as
small Integral
instances or a Bounded
Enum
like
Bool
.
Also note that (
and &?
)(
are able to use knowledge about the
function to get better precision on their results than naively using
|?
)liftA2
(&&
)
Monad Mass Source # | |
Functor Mass Source # | |
Applicative Mass Source # | |
Foldable Mass Source # | |
Traversable Mass Source # | |
Serial1 Mass Source # | |
Comonad Mass Source # | |
ComonadApply Mass Source # | |
Hashable1 Mass Source # | |
Copointed Mass Source # | |
Pointed Mass Source # | |
Apply Mass Source # | |
Bind Mass Source # | |
Extend Mass Source # | |
Unbox a => Vector Vector (Mass a) Source # | |
Unbox a => MVector MVector (Mass a) Source # | |
Eq a => Eq (Mass a) Source # | |
Data a => Data (Mass a) Source # | |
Ord a => Ord (Mass a) Source # | |
Read a => Read (Mass a) Source # | |
Show a => Show (Mass a) Source # | |
Generic (Mass a) Source # | |
Semigroup a => Semigroup (Mass a) Source # | |
Monoid a => Monoid (Mass a) Source # | |
Binary a => Binary (Mass a) Source # | |
Serial a => Serial (Mass a) Source # | |
Serialize a => Serialize (Mass a) Source # | |
NFData a => NFData (Mass a) Source # | |
Hashable a => Hashable (Mass a) Source # | |
Serialize a => SafeCopy (Mass a) Source # | |
data MVector s (Mass a) Source # | |
type Rep (Mass a) Source # | |
data Vector (Mass a) Source # | |
(|?) :: Mass Bool -> Mass Bool -> Mass Bool infixr 2 Source #
Calculate the logical or
of two booleans with confidence lower bounds.