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 May 19, 2017, 8:53 p.m.

Search within the SamplerCompare package
Search all R packages, documentation and source code