normalize {opticskxi}R 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


[Package opticskxi version 1.2.1 Index]