twonorm: Euclidean norm of a vector

View source: R/util.R

twonormR Documentation

Euclidean norm of a vector

Description

Computes the Euclidean norm of a vector.

Usage

twonorm(x)

Arguments

x

A vector.

Details

twonorm computes the Euclidean norm of a vector: sqrt(sum(x^2)).

Value

A numeric vector of length one containing the two-norm of x.


SamplerCompare documentation built on April 24, 2023, 9:09 a.m.