normalize: function that normalizes a vector in the L2 norm

View source: R/overlap.R

normalizeR Documentation

function that normalizes a vector in the L2 norm

Description

function that normalizes a vector in the L2 norm

Usage

normalize(a, norm = 2)

Arguments

a

the original vector

norm

specify L^n norm

Value

the normalized vector


clsong/feasoverlap documentation built on Jan. 1, 2023, 7:10 a.m.