l2norm: Calculate the L2 norm

Description Usage Arguments Value Author(s) Examples

Description

Calculated the L2 norm.

Usage

1
l2norm(x, na.rm = TRUE)

Arguments

x

Objects for which the L2 norm is to be calculated

na.rm

Whether or not to remove NA values from the calculation

Value

The L2 norm of x

Author(s)

Shili Lin <shili@stat.ohio-state.edu>

Examples

1
2
3
set.seed(122)
vals <- sample(1:100, 10)
l2norm(vals)

Example output

[1] 63.26531

TopKLists documentation built on May 2, 2019, 4:41 p.m.