mahalanodisc: Mahalanobis for AWC

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Vector of Mahalanobis distances or their root. For use in awcoord only.

Usage

1
mahalanodisc(x2, mg, covg, modus="square") 

Arguments

x2

numerical data matrix.

mg

mean vector.

covg

covariance matrix.

modus

"md" (roots of Mahalanobis distances) or "square" (original squared form of Mahalanobis distances).

Details

The covariance matrix is inverted by use of solvecov, which can be expected to give reasonable results for singular within-class covariance matrices.

Value

vector of (rooted) Mahalanobis distances.

Author(s)

Christian Hennig c.hennig@ucl.ac.uk http://www.homepages.ucl.ac.uk/~ucakche/

See Also

awcoord, solvecov

Examples

1
2
3
4
  options(digits=3)
  x <- cbind(rnorm(50),rnorm(50))
  mahalanodisc(x,c(0,0),cov(x))
  mahalanodisc(x,c(0,0),matrix(0,ncol=2,nrow=2))


Search within the fpc package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.