function [X,gmean] = mameannorm(X,varargin)
%MAMEANNORM normalizes microarray data by dividing by global mean.
%
%   THIS FUNCTION IS OBSOLETE. USE MANORM INSTEAD.
%
%   XNORM = MAMEANNORM(X) divides the values in each column of X by the
%   mean column intensity.
%
%   [XNORM, COLMEAN] = MAMEANNORM(X) returns the column means used to scale
%   the data.
%
%   MAMEANNORM(...,'PRCTILE',PCT) uses the mean of the PCT percentile of
%   the data. This is useful to prevent large outliers from skewing the
%   normalization.
%
%   MAMEANNORM(...,'GLOBAL',TRUE) divides the values in the data set by the
%   global mean of the data, as opposed to the mean of each column of the
%   data.
%
%   Examples:
%
% 		maStruct = gprread('mouse_a1wt.gpr');
% 		Red = maStruct.Data(:,4);
% 		Green = maStruct.Data(:,13);
%       maloglog(Red,Green,'factorlines',true)
%       figure
%       normRed = mameannorm(Red);
%       normGreen = mameannorm(Green);
%       maloglog(normRed,normGreen,'title','Normalized','factorlines',true)
%
%   See also MALOWESS, MANORM.

% Copyright 2003-2004 The MathWorks, Inc.
% $Revision: 1.6.4.3 $   $Date: 2004/12/24 20:44:26 $

warning('Bioinfo:MAMEANNORM:Obsolete',...
    'MAMEANNORM is obsolete. Use MANORM instead.');

[X,gmean] = manorm(X,varargin{:});
