volume.ellipsoid {cluster}  R Documentation 
Compute the volume of geometric R object.
This is a generic function and has a method for ellipsoid
objects
(typically resulting from ellipsoidhull()
.
volume(object, ...)
## S3 method for class 'ellipsoid'
volume(object, log = FALSE, ...)
object 
an R object the volume of which is wanted; for the

log 

... 
potential further arguments of methods, e.g. 
a number, the volume V
(or \log(V)
if log = TRUE
) of
the given object
.
Martin Maechler (2002, extracting from former clusplot
code);
Keefe Murphy (2019) provided code for dimensions d > 2
.
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"
set.seed(1)
d5 < matrix(rt(500, df=3), 100,5)
e5 < ellipsoidhull(d5)