vectorNorm: Function to evaluate the p-norm of vectors in a matrix

Description Usage Arguments Value

View source: R/utilities-objective.R

Description

Function to evaluate the p-norm of vectors in a matrix

Usage

1
vectorNorm(X, p = 1, margin = 1)

Arguments

X

matrix of numeric values

p

The p in p-norm

margin

The subscripts over which the norm is applied, where 1 gives row norms and 2 gives the column norms

Value

A vector of norms


privacytoolsproject/PSI-Library documentation built on Feb. 17, 2020, 2:03 p.m.