my.norm.2 {rmargint}R Documentation

Euclidean norm of a vector

Description

This function calculates the Euclidean norm of a vector.

Usage

my.norm.2(x)

Arguments

x

A real vector.

Value

The Euclidean norm of the input vector.

Author(s)

Matias Salibian-Barrera, matias@stat.ubc.ca, Alejandra Martinez

Examples

x <- seq(-2, 2, length=10)
my.norm.2(x)


[Package rmargint version 2.0.3 Index]