www.gusucode.com > mbcmodels 工具箱 matlab 源码程序 > mbcmodels/@xregtwostage/mle_Algorithm.m

    function [TS,alg]=mle_Algorithm(TS);
% TWOSTAGE/MLE_ALGORITHM determines the appropriate fit method for mle

%  Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc.



if islinear(TS)
   alg= 'mle_GTS';
else
   alg= 'mle_nonlin';
end   
set(TS,'fitalg',alg);