vector.norm: Norm of a vector

View source: R/auxiliary.R

vector.normR Documentation

Norm of a vector

Description

Calculate the entrywise L_q norm of a vector or a matrix

Usage

vector.norm(v, q = 2, na.rm = FALSE)

Arguments

v

a vector of real numbers

q

a nonnegative real number or Inf

na.rm

boolean, whether to remove NA before calculation

Value

the entrywise L_q norm of a vector or a matrix


InspectChangepoint documentation built on May 3, 2022, 9:07 a.m.