getK-model-method: Getter method of 'model' class.

Description Usage Arguments Value See Also Examples

Description

Returns the K slot.

Usage

1
2
## S4 method for signature 'model'
getK(object)

Arguments

object

An model object.

Value

The K slot of the object.

See Also

Examples

1
2
3
4
# Generate an exponential mixture model with two components.
f_model <- model("exponential", par = list(lambda = c(0.3, 0.7)), K = 2)
# Get the slot
getK(f_model)

simonsays1980/finmix documentation built on Dec. 23, 2021, 2:25 a.m.