apaMatrix.Normal.L2.Cols(Matrix)
Excel
=apaMatrix.Normal.L2.Cols(Matrix)Result
L2 normalization of all columns of a matrix: values are divided by the L2 norm of their column, such that all series are vectors of length one.
Syntax
Matrix: nRows x nCols matrix of data
Remarks
L2 normalization, also known as Euclidean normalization or unit vector normalization, rescales vectors to a length (norm) of one by dividing each element by the Euclidean norm of the vector, i.e. the square root of the sum of its squared elements.
Related functions
apaMatrix.AdjugateReturns the adjugate matrix of a matrix.apaMatrix.Averages.CategoriesReturns the equally-weighted arithmetic category means of a data matrix.apaMatrix.Averages.Categories.WeightedReturns the weighted arithmetic category means of a data matrix.apaMatrix.Averages.ColsReturns the column averages of a matrix.apaMatrix.Averages.Diagonal.MajorReturns the averages of all major diagonals of a matrix.apaMatrix.Averages.Diagonal.MinorReturns the averages of all minor diagonals of a matrix.apaMatrix.Averages.RowsReturns the row averages of a matrix.apaMatrix.Center.ColsCenters the columns of a matrix such that their means are zero.apaMatrix.Center.DoubleCenters the rows and columns of a matrix such that both their means are zero.apaMatrix.Center.RowsCenters the rows of a matrix such that their means are zero.apaMatrix.CenteringCreates the n x n centering matrix H = I − (1/n)*1*1', with n = Size.apaMatrix.ChangeSign.OffDiagonal.MajorChanges the sign of the entries off the main diagonal of a matrix.apaMatrix.ChangeSign.Diagonal.MajorChanges the sign of the entries on the main diagonal of a matrix.apaMatrix.CholeskyReturns the Cholesky decomposition of a symmetric positive definite matrix.apaMatrix.CofactorsReturns the matrix of all cofactors of a matrix.apaMatrix.Concatenate.ColsStacks two matrices in the horizontal direction.apaMatrix.Concatenate.RowsStacks two matrices in the vertical direction.apaMatrix.ConditionNumberReturns the condition number of a matrix.apaMatrix.Cumsum.ColsReturns the running cumulative sums by columns.apaMatrix.Cumsum.RowsReturns the running cumulative sums by rows.apaMatrix.Diagonal.Minor.GetReturns a vector containing the elements on the minor diagonal of a matrix.apaMatrix.Diagonal.Minor.Nth.GetReturns a vector containing the elements on the n-th minor diagonal of a matrix.apaMatrix.Diagonal.Minor.PutReturns a square matrix of zeros with the elements of a vector on the minor diagonal.apaMatrix.Diagonal.Major.GetReturns a vector containing the elements on the major diagonal of a matrix.apaMatrix.Diagonal.Major.Nth.GetReturns a vector containing the elements on the n-th major diagonal of a matrix.apaMatrix.Diff.ColsReturns the column-wise n-th differences of a data matrix.apaMatrix.DifferenceGenerates the (first) difference matrix.apaMatrix.Diagonal.Major.PutReturns a square matrix of zeros with the elements of a vector on the major diagonal.apaMatrix.Diagonal.Major.Put.OnesSets all entries on the main diagonal of a matrix to one.apaMatrix.Drop.ColsRemoves columns of a matrix, given a vector of column indicators.apaMatrix.Drop.Cols.ByIndexRemoves columns of a matrix, given a vector of column indices.apaMatrix.Drop.RowsRemoves rows of a matrix, given a vector of row indicators.apaMatrix.Drop.Rows.ByIndexRemoves rows of a matrix, given a vector of row indices.apaMatrix.Flip.ColsReverses the order of the elements of a matrix in the horizontal direction.apaMatrix.Flip.RowsReverses the order of the elements of a matrix in the vertical direction.apaMatrix.FromVecPuts the elements of a vec vector into a square matrix.apaMatrix.FromVechPuts the elements of a vech vector, i.e. the lower triangular part including the main diagonal, into a square matrix.apaMatrix.FromVeclTurns a vecl vector, i.e. the lower vectorization of a square matrix excluding the main diagonal, into a matrix.apaMatrix.HankelBuilds a Hankel matrix from a data vector.apaMatrix.IdentityCreates an n x n identity matrix, i.e. a square matrix with ones on the main diagonal and zeros otherwise.
