Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Kevin Jones. "Compositional Applications of Stochastic Processes". Computer Music Journal, 5(2):45-58, 1981.
Synopsis
- data G a
- type Rule k a = k -> a -> Maybe (a, a)
- type Probablities k r = (r, [(k, r)])
- type SFSG k a r = (Rule k a, Probablities k r)
- p_verify :: (Eq a, Num a) => Probablities k a -> Bool
- p_select :: (Ord a, Num a) => Probablities k a -> a -> Maybe (Maybe k)
- p_select_err :: (Ord a, Num a) => Probablities k a -> a -> Maybe k
- g_collect :: G a -> [a]
- unfold :: (RandomGen g, Random r, Ord r, Num r) => SFSG k a r -> a -> g -> (G a, g)
- sfsg_chain :: (RandomGen g, Random r, Ord r, Num r) => SFSG k a r -> a -> g -> [G a]
- sfsg_chain_n :: (RandomGen g, Random r, Ord r, Num r) => Int -> SFSG k a r -> a -> g -> [G a]
Stochastic Finite State Grammars
type Probablities k r = (r, [(k, r)]) Source #
type SFSG k a r = (Rule k a, Probablities k r) Source #
p_select_err :: (Ord a, Num a) => Probablities k a -> a -> Maybe k Source #