id2ctxt: VLMC Context ID Conversion

Description Usage Arguments Value See Also Examples

Description

Utility for converting a vlmc state ID to the corresponding context. Of rare interest to the average user.

Usage

1
id2ctxt(id, m=nchar(alpha), alpha=NULL)

Arguments

id

integer, a context ID such as optionally returned by predict.vlmc.

m

integer, the alphabet length. Defaults to nchar(alpha), the alphabet size if that is given.

alpha

alphabet string

Value

a list (if alpha is not specified) or character vector of the same length as id, giving the context (as integer vector or single string) of the corresponding id

See Also

predict.vlmc(*, type = "ID").

Examples

1
2
    id2ctxt(c(2,3,5,9), alpha = "Ab")
str(id2ctxt(c(2,3,5,9), 2))

VLMC documentation built on May 1, 2019, 11:32 p.m.

Related to id2ctxt in VLMC...