Learn R Programming

aqp (version 1.27)

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

Description

This function is actually quite stupid as it can converge on bogus results scaled adjustments based on deviation from threshold distances would be better

Usage

findOverlap(x, thresh)

fixOverlap( x, thresh = 0.6, adj = 0.2, min.x = 0.8, max.x = length(x) + 0.2, maxIter = 1000, trace = FALSE )

Arguments

x

vector of horizontal positions

thresh

horizontal threshold defining "overlap", must be < 1, ideal values likely in [0.3, 0.8]

adj

adjustments are tested within runif(min=adj * -1, max=adj)

min.x

left-side boundary condition

max.x

right-side boundary condition

maxIter

maximum number of iterations to attempt before giving up and returning integer sequence

trace

print diagnostics'

Value

  • findOverlap a vector of the same length as x, preserving rank-ordering and boundary conditions.

  • findOverlap a vector of the same length as x, preserving rank-ordering and boundary conditions.