fm_diameter {fmesher} | R Documentation |
Diameter bound for a geometric object
Description
Find an upper bound to the convex hull of a point set
Usage
fm_diameter(x, ...)
## S3 method for class 'matrix'
fm_diameter(x, manifold = NULL, ...)
## S3 method for class 'sf'
fm_diameter(x, ...)
## S3 method for class 'sfg'
fm_diameter(x, ...)
## S3 method for class 'sfc'
fm_diameter(x, ...)
## S3 method for class 'fm_lattice_2d'
fm_diameter(x, ...)
## S3 method for class 'fm_segm'
fm_diameter(x, ...)
## S3 method for class 'fm_mesh_2d'
fm_diameter(x, ...)
## S3 method for class 'fm_mesh_1d'
fm_diameter(x, ...)
## S3 method for class 'inla.mesh.1d'
fm_diameter(x, ...)
## S3 method for class 'inla.mesh.segment'
fm_diameter(x, ...)
## S3 method for class 'inla.mesh.lattice'
fm_diameter(x, ...)
## S3 method for class 'inla.mesh'
fm_diameter(x, ...)
Arguments
x |
A point set as an |
... |
Additional parameters passed on to the submethods. |
manifold |
Character string specifying the manifold type. Default is to
treat the point set with Euclidean |
Value
A scalar, upper bound for the diameter of the convex hull of the point set.
Author(s)
Finn Lindgren finn.lindgren@gmail.com
Examples
fm_diameter(matrix(c(0, 1, 1, 0, 0, 0, 1, 1), 4, 2))
[Package fmesher version 0.1.7 Index]