diam: What is the diameter of set of points?
Description
Equivalent to diff(minmax(x))
Usage
diam(x, nThread = getOption("hutilscpp.nThread", 1L))thinner(x, width, nThread = getOption("hutilscpp.nThread", 1L))
Value
A single value:
diam
The difference of minmax(x)
thinner
Equivalent to diam(x) <= width
Arguments
- x
A numeric vector.
- nThread
Number of threads to use.
- width
numeric(1)
(For thinner
, the maximum width)