R/norm_vec_1.R

Defines functions norm_vec_2 norm_vec_1

Documented in norm_vec_1 norm_vec_2

#' String of current time
#' 
#' These functions gives the current time
#' @keywords time
#' @export
#' @examples
#' 
norm_vec_1<-function(x){
  sum(abs(x))
}

#' @rdname norm_vec_1
norm_vec_2<-function(x){
  sqrt(sum(x^2))
}
TJetka/TJfunctionsR documentation built on Dec. 16, 2020, 4:27 a.m.