| id2ctxt {VLMC} | R Documentation |
VLMC Context ID Conversion
Description
Utility for converting a vlmc state ID to the
corresponding context. Of rare interest to the average user.
Usage
id2ctxt(id, m=nchar(alpha), alpha=NULL)
Arguments
id |
integer, a context ID such as optionally returned by
|
m |
integer, the alphabet length. Defaults to
|
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
id2ctxt(c(2,3,5,9), alpha = "Ab")
str(id2ctxt(c(2,3,5,9), 2))
[Package VLMC version 1.4-3-1 Index]