R/ellipsoidTransform.R

Defines functions ellipsoidTransform

Documented in ellipsoidTransform

#' Apply a normalisation transformation to vectors of data onto ellipsoids
#' 
#' Takes a vector `x` and transforms the points onto the same geometry of 
#' a normalised ellipse given by the inverse of the covariance matrix 
#' `SigSqrt` and the location `mu`.
#' 
#' @param x the vector of data points to be transformed
#' @param SigSqrt the inverse of the covariance matrix
#' @param mu the vector of means of the ellipse
#' 
#' @return A vector of transformed data points
#' 
#' @export

ellipsoidTransform = function(x, SigSqrt, mu) {
  # input error checking is handled upstream in pointsToEllipsoid()
  return(solve(SigSqrt,x-mu))
}  

Try the SIBER package in your browser

Any scripts or data that you put into this service are public.

SIBER documentation built on Oct. 19, 2023, 5:09 p.m.