overlapMetrics: Find Overlap within a Sequence

View source: R/aqp-label-placement-solvers.R

findOverlapR Documentation

Find Overlap within a Sequence

Description

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

Desc.

Usage

findOverlap(x, thresh)

overlapMetrics(x, thresh)

Arguments

x

vector of relative horizontal positions, one for each profile

thresh

threshold defining "overlap", typically < 1

@return a list:

  • idx: unique index to overlapping elements in x

  • ov: normalized overlap (see details)

Value

unique index to affected (overlapping) elements in x

Examples


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

findOverlap(x, thresh = 0.5)


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

overlapMetrics(x, thresh = 0.5)



aqp documentation built on Sept. 8, 2023, 5:45 p.m.