 | ProbabilityMonads-0.1.0: Probability distribution monads. | Contents | Index |
|
Control.Monad.Distribution.Rational | |
|
|
Description |
An alternative version of Control.Monad.Distribution based on exact
rational numbers.
|
|
Synopsis |
|
|
|
Documentation |
|
module Control.Monad.Distribution.Base |
|
type DDist = MVT Prob [] |
A discrete, finite probability distribution implemented using
double-precision floating-point numbers.
|
|
ddist :: DDist a -> DDist a |
Force a value to be interpreted as having type DDist.
|
|
type BDDist = MaybeT DDist |
A version of BDDist with support for Bayes' theorem.
|
|
bddist :: BDDist a -> Maybe (DDist a) |
Force a value to be interpreted as having type BDDist, and apply
Bayes' rule. Returns Nothing if no possible combination of events
will satisfy the guard conditions specified in BDDist.
|
|
Produced by Haddock version 0.8 |