www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/@mdevmlerf/delchild.m

    function mdev=delchild(mdev,chindex);
% MODELDEV/DELCHILD cleans up deletion of child at chindex

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



ch= children(mdev);
if isempty(ch) | ~any(ch==bestmdev(mdev))
   % reset bestmodel if deleted model was best
	mdev= setbest(mdev,xregpointer);
end