Flash Sale | 50% off

Last chance! 50% off unlimited learning

Sale ends in


aqp (version 1.42)

findOverlap: Find Overlap within a Sequence

Description

Establish which elements within a vector of horizontal positions overlap beyond a given threshold

Usage

findOverlap(x, thresh)

Value

unique index to affected (overlapping) elements in x

Arguments

x

vector of relative horizontal positions, one for each profile

thresh

threshold defining "overlap", typically < 1

Examples

Run this code

x <- c(1, 2, 3, 3.4, 3.5, 5, 6, 10)

findOverlap(x, thresh = 0.5)

Run the code above in your browser using DataLab