Learn R Programming

mclust (version 2.1-14)

hypvol: Aproximate Hypervolume for Multivariate Data

Description

Computes a simple approximation to the hypervolume of a multivariate data set.

Usage

hypvol(data, reciprocal=FALSE)

Arguments

data
A numeric vector, matrix, or data frame of observations. Categorical variables are not allowed. If a matrix or data frame, rows correspond to observations and columns correspond to variables.
reciprocal
A logical variable indicating whether or not the reciprocal hypervolume is desired rather than the hypervolume itself. The default is to return the approximate hypervolume.

Value

  • Computes the hypervolume by two methods: simple variable bounds and principal components, and returns the minimum value.

References

C. Fraley and A. E. Raftery (2002a). Model-based clustering, discriminant analysis, and density estimation. Journal of the American Statistical Association 97:611:631. See http://www.stat.washington.edu/mclust.

Examples

Run this code
data(iris)
irisMatrix <- as.matrix(iris[,1:4])
hypvol(irisMatrix)

Run the code above in your browser using DataLab