twonorm: Euclidean norm of a vector

Description Usage Arguments Details Value

View source: R/util.R

Description

Computes the Euclidean norm of a vector.

Usage

1

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 Jan. 24, 2018, 6:01 p.m.