Skip to Content

volume.ellipsoid {cluster}

Compute the Volume of Planar Object
Package: 
cluster
Version: 
2.0.4

Description

Compute the volume of a planar object. This is a generic function and a method for ellipsoid objects.

Usage

 
## S3 method for class 'ellipsoid':
volume((object))

Arguments

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).

Values

a number, the volume of the given object.

See Also

ellipsoidhull for spanning ellipsoid computation.

Examples

## 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"

Documentation reproduced from package cluster, version 2.0.4. License: GPL (>= 2)