removes the mean
[z,mu] = nan_center(x,DIM,W)
x with removed mean along dimension DIM
mean
input data
dimension
column
row
first DIMENSION, with more than 1 element
weights to computed weighted mean (default: [], all weights = 1)
features: - can deal with NaN's (missing values) - weighting of data - dimension argument - compatible to Matlab and Octave
x=[0.2113249 0.0002211 0.6653811; 0.7560439 0.3303271 0.6283918] s=nan_center(x)