<< cdel Data management csv2div >>

fact >> Data management > centering

centering

centers a Div structure

Calling sequence

[xcentered,x_mean] = centering(x, (mean));

Arguments

x:

a matrix (n x q) or a Div structure

(mean_i):

a mean vector calculated with other data, to be applied to x

mean_i is a vector (1 x q) ou (q x 1) or a Div structure

xcentered:

a Div structure centered with its own mean or with mean_i

xcentered.d is of dimensions (n x q)

mean_o:

the vector used for centering x

x_mean_o.d is of dimensions (q x 1)

Example

[xcentered,xmean]=centering(x)

Authors


Report an issue
<< cdel Data management csv2div >>