R/ssq.R

Defines functions ssq

Documented in ssq

#' Compute the sum of squares.
#'
#' @param x A vector of numerics
#' @return The sum of the squared coefficients of vector x.
#' @examples 
#' ssq(1:10)
#' @export
ssq <- function(u) sum(u**2)
vguillemot/csvd documentation built on May 17, 2019, 8:16 p.m.