is_vlmc {mixvlmc}R Documentation

Test if the object is a vlmc model

Description

This function returns TRUE for VLMC models and FALSE for other objects.

Usage

is_vlmc(x)

Arguments

x

an R object.

Value

TRUE for VLMC models.

Examples

pc <- powerconsumption[powerconsumption$week == 5, ]
dts <- cut(pc$active_power, breaks = c(0, quantile(pc$active_power, probs = c(0.25, 0.5, 0.75, 1))))
model <- vlmc(dts)
# should be true
is_ctx_tree(model)
# should be true
is_vlmc(model)
# should be false
is_covlmc(model)

[Package mixvlmc version 0.2.1 Index]