mcmc-samplers-0.1.0.0: A library of combinators to build MCMC kernels, proposals, and targets

Safe HaskellSafe-Inferred

Actions

Documentation

data Action x m a b Source

Constructors

Action (Act x m a) (a -> m b) a 

execute :: Monad m => Action x m a b -> x -> m (Action x m a b)Source

every :: Monad m => Int -> Action x m a b -> Action x m (a, Int) bSource

type Batch x = ([x], Int)Source

type BatchAct x m = Act x m (Batch x)Source

type BatchAction x m b = Action x m (Batch x) bSource

inBatches :: Monad m => (Batch x -> m b) -> Int -> BatchAct x mSource

pack :: (Batch x -> m b) -> BatchAct x m -> BatchAction x m bSource

type PrintF x s = [x] -> [s]Source

batchViz :: Show s => PrintF x s -> Int -> BatchAction x IO ()Source

batchPrint :: Show s => PrintF x s -> Int -> BatchAction x IO ()Source