distradius: Radius of a point distribution

View source: R/distradius.R

distradiusR Documentation

Radius of a point distribution

Description

Computes a characteristic radius of a set of points about a centre.

Usage

distradius(x, m = NULL, x0 = NULL, type = c("max", "mean", "median"))

Arguments

x

Numeric vector or matrix. If a matrix is supplied, each row is interpreted as a point.

m

Optional numeric vector of point masses or weights. If NULL, equal weights are used.

x0

Optional numeric vector specifying the centre. If NULL, the weighted centre of mass is used.

type

Character string specifying the radius definition. One of "max", "mean" or "median".

Value

A scalar radius.

See Also

vectornorm


cooltools documentation built on Sept. 11, 2026, 5:06 p.m.