% Y = SoundClassificationModelDS(dir, nS, nB [, OPTIONAL ARGS])
%                                                                    
% Train multiple SoundModelDS using using Baum-Welch re-estimation.
%
%Inputs:
%
% DIR - root directory for training data (contains sub-directories of individual class data)
% nS - number of initial model states for each HMM [10]
% nB  - number of basis functions to extract [10]
%
% The following variables are optional, and are specified using
% 'parameter' value pairs on the command line.
%
%    'hopSize'          'PT10N1000F'
%    'loEdge'            62.5,      
%    'hiEdge'            16000,     
%    'octaveResolution'  '1/8'
%    'outputFile'         'SoundClassificationModel'
%    'sequenceHopSize'      '',
%    'sequenceFrameLength'  ''
%
% Outputs:
%
% Y - cell array of SoundModelDS structures, one per sound class
%
% Copyright (C) 1999-2002 Michael A. Casey, All Rights Reserved.


LICENSE
      Permission to use, copy, modify and distribute this software and
      its documentation for educational, research and non-profit
      purposes, without fee, and without a written agreement is hereby
      granted, provided that the above copyright notice and the
      following three paragraphs appear in all copies.

      To request Permission to incorporate this software into
      commercial products contact MERL - Mitsubishi Electric Research
      Laboratories, 201 Broadway, Cambridge, MA 02139.

      IN NO EVENT SHALL MERL BE LIABLE TO ANY PARTY FOR DIRECT,
      INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES,
      INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE
      AND ITS DOCUMENTATION, EVEN IF MERL HAS BEEN ADVISED OF THE
      POSSIBILITY OF SUCH DAMAGES.

      MERL SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
      LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
      FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED
      HEREUNDER IS ON AN "AS IS" BASIS, AND MERL HAS NO OBLIGATIONS TO
      PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR
      MODIFICATIONS.

