single_mcmc: Function 'single_mcmc'

Description Usage Arguments Value

Description

Runs a single MCMC chain for a fixed number of iterations.

Usage

1
single_mcmc(chain, backend = "CUDA", threads = 1)

Arguments

chain

object of type Chain. This chain argument could be a newly created Chain object from Chain(...). Alternatively, if chain is the output from a previous call to run_mcmc(...), then the function will continue the MCMC from where it left off.

backend

defaults to "CUDA". The other option is "OpenMP", which uses OpenMP threads to parallelize within Markov chains if OpenMP is available.

threads

number of threads for the OpenMP backend.

Value

a Chain object with updated parameter values. You can feed this object back into another call to single_mcmc() to continue the chain from where you left off.


wlandau/fbseq documentation built on May 4, 2019, 8:43 a.m.