maxCMS: Number of maximum consecutively matching striae

Description Usage Arguments Value Examples

View source: R/features.R

Description

Number of maximum consecutively matching striae

Usage

1

Arguments

match

is a Boolean vector of matches/non-matches

Value

an integer value of the maximum number of consecutive matches

Examples

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

Example output

 1  2  3  4 
12  7  1  1 
[1] 4

bulletr documentation built on May 1, 2019, 10:08 p.m.