function M = train_classifier(varargin)

%function M = train_classifier(fm_train1, fm_train2, ... )
%
% TRAIN_CLASSIFIER  --  This function trains a classifer by computing a
%                       class representative (mean feature vector) for
%                       a number of classes.
%
% Input Parameters:
%   fm_train?  --  Each input parameter is a feature matrix containing 
%                  instances from a single class.  Any number of input
%                  feature matrices can be input to the system.
%
% Output Parameter:
%   M          --  M is a matrix with class representative feature vectors,
%                  with one class per row.
%


M = [];

for i=1:length(varargin)
    M(i,:) = mean(varargin{i});
end
