context_number | R Documentation |
This function returns the number of distinct contexts in a context tree.
context_number(ct)
ct |
a context tree. |
the number of contexts of the tree.
dts <- c(0, 1, 1, 1, 0, 0, 1, 0, 1, 0)
dts_ctree <- ctx_tree(dts, min_size = 1, max_depth = 3)
# should be 8
context_number(dts_ctree)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.