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

    function s= nonlin_sse(p,TS,varargin);
% TWOSTAGE/NONLIN_SSE nonlinear sum of squares error
%
% for nonlinear mle problem

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



r= mle_nlcost(p,TS,varargin{:});

% cost function
s= sum(r.^2);