Safe Haskell | None |
---|
Documentation
Dist | |
|
Typeable1 Dist |
type Likelihood = DoubleSource
Measure | |
|
makeXRP :: (Typeable a, RandomGen g) => Cond -> Dist a -> Name -> Database -> g -> (a, Database, Likelihood, Likelihood, g)Source
updateLikelihood :: (Typeable a, RandomGen g) => Likelihood -> Likelihood -> (a, Database, Likelihood, Likelihood, g) -> [Cond] -> (a, Database, (Likelihood, Likelihood), [Cond], g)Source
categorical :: (Eq a, Typeable a) => [(a, Double)] -> Cond -> Measure aSource
factor :: Likelihood -> Measure ()Source
resample :: RandomGen g => XRP -> g -> (XRP, Likelihood, Likelihood, Likelihood, g)Source
conditioned :: (Cond -> Measure a) -> Measure aSource
unconditioned :: (Cond -> Measure a) -> Measure aSource
ifThenElse :: Bool -> a -> a -> aSource
traceUpdate :: RandomGen g => Measure a -> Database -> [Cond] -> g -> (a, Database, Likelihood, Likelihood, Likelihood, g)Source
initialStep :: Measure a -> [Cond] -> IO (a, Database, Likelihood, Likelihood, Likelihood, StdGen)Source
updateDB :: RandomGen g => Name -> Database -> Observed -> XRP -> g -> (Database, Likelihood, Likelihood, Likelihood, g)Source
transition :: (Typeable a, RandomGen g) => Measure a -> [Cond] -> a -> Database -> Likelihood -> g -> [a]Source