testis.java

来自「机器学习算法中的CHC算法」· Java 代码 · 共 28 行

JAVA
28
字号
package chc;public class TestIs {  public static int[] one = { 1, 1, 1, 1, 1 };  public static int[] two = { 0, 0, 1, 1, 1 };   public static void main(String[] args) {    Hypothesis o = new Hypothesis(0, one);    Hypothesis t = new Hypothesis(0, two);    Hypothesis three = new Hypothesis(0, one);    if ( o.is(three) ) {      System.out.println("IS");    }    else {      System.out.println("IS NOT");    }    if ( o.equals(three) ) {      System.out.println("Equals");    }    else {      System.out.println("Not Equal");    }  }}

⌨️ 快捷键说明

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