monad-bayes-1.3.0.1: A library for probabilistic programming.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Control.Monad.Bayes.Inference.TUI

Synopsis

Documentation

data MCMCData a Source #

Constructors

MCMCData 

Fields

Instances

Instances details
Show a => Show (MCMCData a) Source # 
Instance details

Defined in Control.Monad.Bayes.Inference.TUI

Methods

showsPrec :: Int -> MCMCData a -> ShowS #

show :: MCMCData a -> String #

showList :: [MCMCData a] -> ShowS #

drawUI :: ([a] -> Widget n) -> MCMCData a -> [Widget n] Source #

Brick is a terminal user interface (TUI) which we use to display inference algorithms in progress

draw the brick app

showEmpirical :: (Show a, Ord a) => [a] -> Widget n Source #

showVal :: Show a => [a] -> Widget n Source #

appEvent :: BrickEvent n s -> EventM n s () Source #

handler for events received by the TUI

tui :: Show a => Int -> TracedT (WeightedT SamplerIO) a -> ([a] -> Widget ()) -> IO () Source #