www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/@xregbdryroot/getBestLeaves.m
function leaves = getBestLeaves(broot) %GETBESTLEAVES Get the leaves marked as best. % % LEAVES = GETBESTLEAVES(BROOT) processes the tree from the root looking % for the constraints that are best. At each level, processing stops for % any branch not marked as best. LEAVES will a list of pointers to % xregbdrydev objects. % Copyright 2005 The MathWorks, Inc. if isempty( broot.Best ), leaves = []; else leaves = pveceval( broot.Best, @getBestLeaves ); leaves = cat( 2, leaves{:} ); end