Desc.
overlapMetrics(x, thresh)
vector of relative horizontal positions, one for each profile
threshold defining "overlap", typically < 1
@return a list
:
idx
: unique index to overlapping elements in x
ov
: normalized overlap (see details)
x <- c(1, 2, 3, 3.4, 3.5, 5, 6, 10)
overlapMetrics(x, thresh = 0.5)
#> $idx
#> [1] 3 4 5
#>
#> $ov
#> [1] 0.125
#>