Find an upper bound to the convex hull of a point set
Usage
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_segm
fm_diameter(x, ...)
# S3 method for fm_mesh_2d
fm_diameter(x, ...)
# S3 method for fm_mesh_1d
fm_diameter(x, ...)
# S3 method for inla.mesh.1d
fm_diameter(x, ...)
# S3 method for inla.mesh.segment
fm_diameter(x, ...)
# S3 method for inla.mesh.lattice
fm_diameter(x, ...)
# S3 method for inla.mesh
fm_diameter(x, ...)
Arguments
- x
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.
- manifold
Character string specifying the manifold type. Default is to treat the point set with Euclidean \(R^d\) metrics. Use
manifold="S2"
for great circle distances on the unit sphere (this is set automatically forfm_fmesh_2d
objects).
Author
Finn Lindgren finn.lindgren@gmail.com