OmicsPLS (version 2.0.2)

ssq: Calculate Sum of Squares

Description

Calculate Sum of Squares

Usage

ssq(X)

Arguments

X

Numeric vector or matrix.

Value

The sum of squared elements of \(X\)

Details

This is the Frobenius norm of \(X\).

Examples

Run this code
# NOT RUN {
ssq(tcrossprod(1:5))
ssq(rnorm(1e5))/1e5
# }

Run the code above in your browser using DataLab