volume.ellipsoid {cluster} | R Documentation |
Compute the volume of a planar object.
This is a generic function and a method for ellipsoid
objects.
## S3 method for class 'ellipsoid': volume(object)
object |
an R object the volume of which is wanted; for the
ellipsoid method, an object of that class (see
ellipsoidhull or the example below). |
a number, the volume of the given object
.
ellipsoidhull
for spanning ellipsoid computation.
## example(ellipsoidhull) # which defines `ellipsoid' object <namefoo> myEl <- structure(list(cov = rbind(c(3,1),1:2), loc = c(0,0), d2 = 10), class = "ellipsoid") volume(myEl)# i.e. "area" here (d = 2) myEl # also mentions the "volume"