function cd=cdata(data)

% CDATA       Centre a data-set about its mean.
%
%             Example: load kddata;
%                      data=cdata(kea(:,1:2))
%
%             CDATA(DATA)
%
%             Christian C. Beardah 1996

[n,d]=size(data);
cd=data-ones(n,1)*mean(data);