A class to monitor the state of ann MCMC chain
A class to monitor the state of ann MCMC chain
the number of iterations computed
the proportion of accepted moves
Remove burnin terms from a stream of parameters
Calculate the average of a stream of parameters by grouping them and performing the operations on the grouped parameters
Used to monitor a pilot run of the PMMH algorithm
A helper function to monitor the stream every 'every' iterations with a print statement
A helper function to monitor the stream every 'every' iterations with a print statement
number of iterations to wait until a print statement informs of the iteration, and acceptance ratio
Performs a pilot run of the PMMH algorithm, this runs PMMH iterations at a fixed parameter value, returns the acceptance ratio and mll variance, the mll variance should be 1 Change the number of particles in the filter to alter the mll variance
Get parameter stream from file
Get parameter stream from file
a filepath to read from
Akka streaming iterations of Metropolis Hastings algorithm with asynchronous file writing
Akka streaming iterations of Metropolis Hastings algorithm with asynchronous file writing
a metropolis hastings class
a string representing the output filename
total amount of iterations to write to file
Unit, writes to a file asynchronously as
Only keep every nth iteration, corresponding to the thin
Only keep every nth iteration, corresponding to the thin
keep every parameters where iteration % thin == 0
a thinned stream of Parameter Arrays
Asynchronously write a file