id2ctxt | R Documentation |
Utility for converting a vlmc
state ID to the
corresponding context. Of rare interest to the average user.
id2ctxt(id, m=nchar(alpha), alpha=NULL)
id |
integer, a context ID such as optionally returned by
|
m |
integer, the alphabet length. Defaults to
|
alpha |
alphabet string |
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
predict.vlmc(*, type = "ID")
.
id2ctxt(c(2,3,5,9), alpha = "Ab")
str(id2ctxt(c(2,3,5,9), 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.