mcmc-0.2.4: Sample from a posterior using Markov chain Monte Carlo

Copyright(c) Dominik Schrempf 2020
LicenseGPL-3.0-or-later
Maintainerdominik.schrempf@gmail.com
Stabilityunstable
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Mcmc.Trace

Description

Creation date: Wed May 20 09:11:25 2020.

Synopsis

Documentation

data Trace a Source #

A Trace passes through a list of states with associated likelihoods which are called Items. New Items are prepended, and the path of the Markov chain is stored in reversed order.

Instances
Eq a => Eq (Trace a) Source # 
Instance details

Defined in Mcmc.Trace

Methods

(==) :: Trace a -> Trace a -> Bool #

(/=) :: Trace a -> Trace a -> Bool #

Read a => Read (Trace a) Source # 
Instance details

Defined in Mcmc.Trace

Show a => Show (Trace a) Source # 
Instance details

Defined in Mcmc.Trace

Methods

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

show :: Trace a -> String #

showList :: [Trace a] -> ShowS #

Semigroup (Trace a) Source # 
Instance details

Defined in Mcmc.Trace

Methods

(<>) :: Trace a -> Trace a -> Trace a #

sconcat :: NonEmpty (Trace a) -> Trace a #

stimes :: Integral b => b -> Trace a -> Trace a #

Monoid (Trace a) Source # 
Instance details

Defined in Mcmc.Trace

Methods

mempty :: Trace a #

mappend :: Trace a -> Trace a -> Trace a #

mconcat :: [Trace a] -> Trace a #

ToJSON a => ToJSON (Trace a) Source # 
Instance details

Defined in Mcmc.Trace

FromJSON a => FromJSON (Trace a) Source # 
Instance details

Defined in Mcmc.Trace

singletonT :: Item a -> Trace a Source #

The empty trace.

pushT :: Item a -> Trace a -> Trace a Source #

Prepend an Item to a Trace.

headT :: Trace a -> Item a Source #

Get the most recent item of the trace.

takeItems :: Int -> Trace a -> [Item a] Source #

Get the N most recent items of the trace.

takeT :: Int -> Trace a -> Trace a Source #

Shorten the trace to given length.