Normalizes the columns of every factor matrix, absorbing the magnitudes
into the weight vector lambda. Mirrors the MATLAB Tensor Toolbox
normalize(K, N) semantics.
Usage
normalize(x, ...)
# S3 method for class 'KTensor'
normalize(x, mode = NULL, sort = FALSE, normtype = 2, ...)Arguments
- x
A
KTensor.- ...
Additional arguments passed to methods.
- mode
NULL(default) keeps all weight inlambda; a mode number absorbs the weights into that factor matrix;0distributes the weights evenly across all modes (each factor absorbslambda^(1/N)).- sort
Logical; if
TRUE, sort the components by weight, descending. Only allowed when the weights remain inlambda(i.e.modeisNULL).- normtype
Norm to use for the factor columns (passed as the
pin the vector p-norm; default2).