maxCMS: Number of maximum consecutively matching striae

View source: R/features.R

maxCMSR Documentation

Number of maximum consecutively matching striae

Description

Number of maximum consecutively matching striae

Usage

maxCMS(match)

Arguments

match

is a Boolean vector of matches/non-matches

Value

an integer value of the maximum number of consecutive matches

Examples

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

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