attribute.java
来自「Boosting算法软件包」· Java 代码 · 共 22 行
JAVA
22 行
package jboost.examples;import jboost.monitor.Monitor;/** holds value of a single attribute of an Instance */public class Attribute { public static void main(String[] argv) { Attribute a = new RealAttribute(9.5); if(Monitor.logLevel>3) Monitor.log("The className is "+a.getClass().getName()); } /** default constructor for the base At.tribute class */ public Attribute() { defined=false;} /** a flag indicating whether this attribute value is defined for the example */ protected boolean defined; // is attribute defined for example public void setDefined() {defined=true;} public boolean isDefined() {return defined;}}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?