k {CNPBayes}R Documentation

Number of components.

Description

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.

Usage

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

Arguments

object

see showMethods(k)

value

An integer for the new number of components.

Value

The number of components

Examples

k(SingleBatchModelExample) <- 2

[Package CNPBayes version 1.12.0 Index]