getRuntime: Extracting runtime

View source: R/extractors.R

getRuntimeR Documentation

Extracting runtime

Description

This function extracts runtime of a particular step of order and partition MCMC.

Usage

getRuntime(x, which = 0)

Arguments

x

object of class 'orderMCMC'or 'partitionMCMC'

which

integer, defines if the runtime is extracted for: computing score tables (which = 1), running MCMC chain (which = 2)

Value

runtime of a particular step of MCMC scheme or total runtime

Examples

myscore<-scoreparameters("bge",Boston)
## Not run: 
orderfit<-sampleBN(myscore,algorithm="order")
(getRuntime(orderfit,1))
(getRuntime(orderfit,2))

## End(Not run)

BiDAG documentation built on May 31, 2023, 6:46 p.m.

Related to getRuntime in BiDAG...