Learn R Programming

SamplerCompare (version 1.3.4)

twonorm: Euclidean norm of a vector

Description

Computes the Euclidean norm of a vector.

Usage

twonorm(x)

Value

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

Arguments

x

A vector.

Details

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