Find an upper bound to the convex hull of a point set or function space
fm_diameter(x, ...)# S3 method for matrix
fm_diameter(x, manifold = NULL, ...)
# S3 method for sf
fm_diameter(x, ...)
# S3 method for sfg
fm_diameter(x, ...)
# S3 method for sfc
fm_diameter(x, ...)
# S3 method for fm_lattice_2d
fm_diameter(x, ...)
# S3 method for fm_mesh_1d
fm_diameter(x, ...)
# S3 method for fm_mesh_2d
fm_diameter(x, ...)
# S3 method for fm_segm
fm_diameter(x, ...)
# S3 method for fm_mesh_3d
fm_diameter(x, ...)
# S3 method for fm_tensor
fm_diameter(x, ...)
# S3 method for fm_collect
fm_diameter(x, ...)
A scalar, upper bound for the diameter of the convex hull of the
point set. For multi-domain spaces (e.g. fm_tensor()
and
fm_collect()
), a vector of upper bounds for each domain is returned.
A point set as an \(n\times d\) matrix, or an
fm_mesh_2d
/1d
/sf
related object.
Additional parameters passed on to the submethods.
Character string specifying the manifold type. Default for
matrix
input is to treat the point set with Euclidean
\(\mathbb{R}^d\) metrics.
Use manifold="S2"
for great circle distances on a sphere centred at the
origin.
Finn Lindgren Finn.Lindgren@gmail.com
fm_diameter(matrix(c(0, 1, 1, 0, 0, 0, 1, 1), 4, 2))
Run the code above in your browser using DataLab