k {CNPBayes} | R Documentation |
This function retrieves the number of a priori components.
Updates the number of components and erases chains from a previous posteriorSimulation (if one was performed). Draws from prior to guess new starting values.
k(object) k(object) <- value ## S4 replacement method for signature 'Hyperparameters' k(object) <- value ## S4 method for signature 'MixtureModel' k(object) ## S4 replacement method for signature 'MixtureModel' k(object) <- value
object |
see |
value |
An integer for the new number of components. |
The number of components
k(SingleBatchModelExample) <- 2