as.MCMCState: If necessary, convert an object to an MCMCState object.

Description Usage Arguments Value

View source: R/MCMCState.R

Description

If necessary, convert an object to an MCMCState object.

Usage

1
as.MCMCState(s, ctx = NULL)

Arguments

s

a MCMCState or a MCMCStateVector object.

ctx

a MCMCContext object. This is needed only if s is MCMCStateVector object.

Value

an MCMCState object corresponding to s. If s is already a MCMCState object, it is returned as is. Otherwise, a MCMCState object is constructed from s and ctx.


venelin/PCMBayes documentation built on Dec. 23, 2019, 6:39 p.m.