center and weight
s = wcenter(x) s = wcenter(x, orientation)
x: real or complex vector or matrix
index of the dimension along which the wcenter is computed. It can be either
"*" (default), "r" or
"c"real or complex scalar or vector
This function computes s, the weighted and centred
version of the numerical matrix x.
For a vector or a matrix x, s = wcenter(x) or
s = wcenter(x, "*") returns in the (i,j) coefficient of the matrix
s the value (x(i,j)-xbar)/sigma, where
xbar is the mean of the values of the coefficients of
x and sigma his standard deviation.
s = wcenter(x, 'r') (or, equivalently,
s = wcenter(x, 1)) is the rowwise centre reduction of
the values of x. It returns in the entry s(i,j)
the value (x(i,j)-xbarv(j))/sigmav(j) with
xbarv(j) the mean of the values of the j
column and sigmav(j) the standard deviation of the
j column of x.
s = wcenter(x, 'c') (or, equivalently,
s = wcenter(x, 2)) is the columnwise centre reduction of
the values of x. It returns in the entry
s(i,j) the value (x(i,j)-xbarh(i))/sigmah(i) with
xbarh(i) the mean of the values of the i row
and sigmah(i) the standard deviation of the i
row of x.