Learn R Programming

OmicsPLS (version 2.1.0)

ssq: Calculate Sum of Squares

Description

Calculate Sum of Squares

Usage

ssq(X)

Value

The sum of squared elements of \(X\)

Arguments

X

Numeric vector or matrix.

Details

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

Examples

Run this code
ssq(tcrossprod(1:5))
ssq(rnorm(1e5))/1e5

Run the code above in your browser using DataLab