ssq: Calculate Sum of Squares

Description Usage Arguments Details Value Examples

View source: R/OmicsPLS.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

Example output

Attaching package: 'OmicsPLS'

The following object is masked from 'package:stats':

    loadings

[1] 3025
[1] 0.9980711

OmicsPLS documentation built on May 19, 2021, 5:08 p.m.