thin {CNPBayes} | R Documentation |
This function gets or sets the number of thinning intervals used for an MCMC simulation.
thin(object) thin(object) <- value ## S4 method for signature 'McmcParams' thin(object) ## S4 method for signature 'MixtureModel' thin(object) ## S4 replacement method for signature 'MixtureModel,numeric' thin(object) <- value
object |
see showMethods(thin) |
value |
a length-one numeric vector indicating how often to save MCMC iterations to the chain. For example, a thin of 10 means that every 10th MCMC simulation is saved to the chain. |
An integer of the number of thinning intervals
thin(SingleBatchModelExample) thin(SingleBatchModelExample) <- 10L