R/ssq.R

Defines functions ssq

Documented in ssq

#' Compute the sum of squares.
#'
#' @param x A vector of numeric values
#' @return The sum of the squared coefficients of vector x.
#' @examples 
#' ssq(1:10)
#' @export
ssq <- function(x) sum(x**2)
vguillemot/sparseMCA documentation built on Nov. 5, 2019, 12:02 p.m.