rule.java

来自「关于粗糙集的很好的学习程序」· Java 代码 · 共 44 行

JAVA
44
字号
import ItemSet;public class Rule{  private ItemSet myLhs;  private ItemSet myRhs;  private int     mySupport;  private float   myConfidence;  Rule( ItemSet lhs, ItemSet rhs, int support, float confidence )  {   myLhs = lhs;   myRhs = rhs;   mySupport = support;   myConfidence = confidence;  }  public ItemSet getLhs()  {    return myLhs;  }  public ItemSet getRhs()  {    return myRhs;  }  public int getSupport()  {    return mySupport;  }  public float getConfidence()  {    return myConfidence;  }      public String toString()  {    return( myLhs+"==>"+myRhs+" (confidence="+myConfidence+" support="+mySupport+")");  }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?