Maintainer | atloomis@math.arizona.edu |
---|---|
Stability | Experimental |
Safe Haskell | Safe |
Language | Haskell2010 |
Markov.Generic
Description
An implementation of Markov chains allowing non-list containers.
Synopsis
- class (Applicative t, Comonad t, Monad c) => Markov c t s where
- transition :: s -> c (t (s -> s))
- step :: t s -> c (t s)
- sequential :: [s -> c (t (s -> s))]
Documentation
class (Applicative t, Comonad t, Monad c) => Markov c t s where Source #
An implementation of Markov chains with non-list containers.
Markov.Markov t s = Markov.Generic.Markov [] t s
Minimal complete definition
transition | step | sequential
Methods
transition :: s -> c (t (s -> s)) Source #
step :: t s -> c (t s) Source #
sequential :: [s -> c (t (s -> s))] Source #