Computes the (absolute, pairwise) distance between the vector elements and an interval

dist_to_interval(x, interval)

Arguments

x

(numeric())
A numeric vector.

interval

(numeric(2))
An interval.