l2norm: Calculate the L2 norm

View source: R/TopKSpace.R

l2normR Documentation

Calculate the L2 norm

Description

Calculated the L2 norm.

Usage

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

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

TopKLists documentation built on Sept. 1, 2022, 5:10 p.m.