CMS: Table of the number of consecutive matches

View source: R/features.R

CMSR Documentation

Table of the number of consecutive matches

Description

Table of the number of consecutive matches

Usage

CMS(match)

Arguments

match

is a Boolean vector of matches/non-matches

Value

a table of the number of the CMS and their frequencies

Examples

x <- rbinom(100, size = 1, prob = 1/3) 
CMS(x == 1) # expected value for longest match is 3

erichare/bulletr documentation built on May 3, 2024, 10:14 p.m.