Description Usage Arguments Value

View source: R/utilities-objective.R

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

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

`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 |

A vector of norms

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.