Vector normalization

 

norm() can be used to normalize vector or matrix


A

1

[7,9,6,23,56,1]

2

=norm(A1)

3

=norm@0(A1)

4

=norm@s(A1)

A2 The vector A1 is normalized by subtracting the mean of each row and dividing by the Euclidean norm (L2 norm).

..

A3 Subtract the mean from each row only and mean value after normalization is 0

A4 0-1 normalization; mean value after normalization is 0, and standard deviation is 1.