CMS | R Documentation |
Table of the number of consecutive matches
CMS(match)
match |
is a Boolean vector of matches/non-matches |
a table of the number of the CMS and their frequencies
x <- rbinom(100, size = 1, prob = 1/3)
CMS(x == 1) # expected value for longest match is 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.