R/cSize.R

Defines functions cSize

#' Centroid Size Function
#'
#' Get the centroid size
#' @param x point cloud
#' @noRd

cSize <- function(x) {
	X <- scale(x, scale = FALSE)
    y <- sqrt(sum(as.vector(X)^2))
    return(y)
}

Try the molaR package in your browser

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

molaR documentation built on Feb. 16, 2023, 10:33 p.m.