[sel_edges] = SelectEdgesToShow(run_structures,const_edg) SelectEdgesToShow: From the set of all the structures learned in all runs, extracts those edges (the indices) that were learned at least const_edg times INPUT run_structures: Contain the data structures with all the structures learned by the probability models in every run and generation (see program ReadStructures.m for details. const_edg: Number of times that an edge has to be in the learned structures to be selected. OUTPUT sel_edges: Indices of the edges that will be extracted Last version 8/26/2008. Roberto Santana (roberto.santana@ehu.es)
0001 function[sel_edges] = SelectEdgesToShow(run_structures,const_edg) 0002 % [sel_edges] = SelectEdgesToShow(run_structures,const_edg) 0003 % SelectEdgesToShow: From the set of all the structures learned in all 0004 % runs, extracts those edges (the indices) that were 0005 % learned at least const_edg times 0006 % INPUT 0007 % run_structures: Contain the data structures with all the structures 0008 % learned by the probability models in every run and generation (see 0009 % program ReadStructures.m for details. 0010 % const_edg: Number of times that an edge has to be in the learned 0011 % structures to be selected. 0012 % OUTPUT 0013 % sel_edges: Indices of the edges that will be extracted 0014 % 0015 % Last version 8/26/2008. Roberto Santana (roberto.santana@ehu.es) 0016 0017 AllSumMatrices = run_structures{3}; 0018 0019 sel_edges = find(sum(AllSumMatrices')> const_edg); 0020 0021