l2_normalize: L2 normalize an input vector x to a length of 1

View source: R/utils.R

l2_normalizeR Documentation

L2 normalize an input vector x to a length of 1

Description

L2 normalize an input vector x to a length of 1

Usage

l2_normalize(x)

Arguments

x

a numeric vector

Value

a vector of length length(x) with a magnitude of 1


keyes-timothy/tidytof documentation built on Aug. 28, 2024, 8:37 a.m.