R/normalize.r

Defines functions normalize

Documented in normalize

#' @export normalize

normalize <- function(x){
  
  norm <- sqrt(sum(x^2))
  
  normvec <- x/norm
  return(normvec)
}

Try the LSAfun package in your browser

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

LSAfun documentation built on Nov. 18, 2023, 1:10 a.m.