diam: What is the diameter of set of points?

View source: R/diam.R

diamR Documentation

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))

Arguments

x

A numeric vector.

nThread

Number of threads to use.

width

numeric(1) (For thinner, the maximum width)

Value

A single value:

diam

The difference of minmax(x)

thinner

Equivalent to diam(x) <= width


hutilscpp documentation built on Oct. 11, 2023, 9:06 a.m.