vnorm: Norm of a vector or columns of a matrix

Description Usage Arguments Value Examples

View source: R/OmicsPLS.R

Description

Norm of a vector or columns of a matrix

Usage

1
vnorm(x)

Arguments

x

Numeric vector or matrix.

Value

(columnwise) Euclidian norm of x

Examples

1
2
vnorm(orth(1:5))
vnorm(matrix(1:9,3,3))^2 - colSums(matrix(1:9,3)^2)

Example output

Attaching package: 'OmicsPLS'

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

    loadings

[1] 1
[1] 0.000000e+00 1.421085e-14 0.000000e+00

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