normalize: Matrix normalization

View source: R/dist_matrix.R

normalizeR Documentation

Matrix normalization

Description

normalize matrix rows using given norm. Copied from text2vec

Usage

normalize(m, norm = c("l1", "l2", "none"))

Arguments

m

matrix (sparse or dense).

norm

character the method used to normalize term vectors

Value

normalized matrix


ThomasChln/opticskxi documentation built on April 12, 2025, 5:43 a.m.