rowset.java
来自「关于粗糙集的很好的学习程序」· Java 代码 · 共 40 行
JAVA
40 行
public class RowSet extends ItemSet{ RowSet() { super(); } RowSet( ItemSet c ) { //this.RowSet(); super(); Object o[] = c.toArray(); for( int i=0; i<o.length; i++) this.add( new Row( (ItemSet)o[i] ) ); } public void updateSupport( ItemSet s ) { Object o[] = this.toArray(); for(int i=0; i<o.length; i++) ((Row)o[i]).updateSupport(s); } public void updateSupportA( ItemSet s ) { Object o[] = this.toArray(); for(int i=0; i<o.length; i++) ((Row)o[i]).updateSupportA(s); } public void pruneForMinimumSupport( int minSup ) { Object o[] = this.toArray(); for(int i=0; i<o.length; i++) if( ((Row)o[i]).getSupport() < minSup ) this.remove(o[i]); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?