ssq: Calculate Sum of Squares

Description Usage Arguments Details Value Examples

View source: R/O2PLS.R

Description

Calculate Sum of Squares

Usage

1
ssq(X)

Arguments

X

Numeric vector or matrix.

Details

This is the Frobenius norm of X.

Value

The sum of squared elements of X

Examples

1
2
ssq(tcrossprod(1:5))
ssq(rnorm(1e5))/1e5

selbouhaddani/O2PLS documentation built on May 29, 2019, 5:53 p.m.