standarize(a)

Transform array a such that the new mean is zero and the variance is unity.

standarize(A)

Transform each column of matrix A such that each column has a zero mean and unitary variance.


See also zeroMean sort apply 


Example


a = ( 1, 2, 3, 4, -1, 2, 3, 7 );

standarize( a )

-0.6986 -0.2687 0.1612 0.5911 -1.5584 -0.2687 0.1612 1.8808