Compute the Z score of x
If x is a vector, subtract its mean and divide by its standard deviation. If the standard deviation is zero, divide by 1 instead.
The optional parameter opt determines the normalization to use when
computing the standard deviation and has the same definition as the
corresponding parameter for std
.
If x is a matrix, calculate along the first non-singleton dimension. If the third optional argument dim is given, operate along this dimension.
The optional outputs mu and sigma contain the mean and standard deviation.
See also: mean, std, center.
Package: octave