norm_vec: Various norms of vector

Description Usage Arguments Value Examples

View source: R/norm_vec.R

Description

calculate 1,2,or inf norm of vectors

Usage

1
norm_vec(x, type = "2")

Arguments

x

a numeric vector

type

a character

Value

a number

Examples

1
n2 = norm_vec(x,type="2")

hsong1/PUlearning documentation built on May 16, 2017, 11:27 p.m.