vecnorm: Calculates the Euclidean norm across each row of a given...

View source: R/math.R

vecnormR Documentation

Calculates the Euclidean norm across each row of a given matrix.

Description

Calculates the Euclidean norm across each row of a given matrix.

Usage

vecnorm( x )

Arguments

x

A matrix with numeric, real values.

Value

Calculates the Euclidean norm of a vector.

Examples

values <- matrix( c( 1 , 2 , 3 ) , ncol = 3 )
vecnorm( values ) # should yield 3.741657

brandynlucca/acousticTS documentation built on July 4, 2025, 12:43 a.m.