attributetype.java

来自「bayes network classifier toolbox 贝叶斯网络分」· Java 代码 · 共 41 行

JAVA
41
字号
package jbnc.dataset;import java.io.Serializable;/** * Types of values represented by an attribute. */final public class AttributeType implements Serializable {    /**     * Attribute to be ignored.     */    public final static AttributeType IGNORE = new AttributeType("IGNORE");    /**     * Attribute with continuous values represented as double.     */    public final static AttributeType CONTINUOUS = new AttributeType("CONTINUOUS");    /**     * Attribute with enumrated discrete values. Values are internally represented as integers.     *     * @see jbnc.dataset.AttributeSpecs#states     */    public final static AttributeType DISCRETE = new AttributeType("DISCRETE");    /**     * Attribute with N discrete values (0 to N-1).     */    public final static AttributeType DISCRETE_N = new AttributeType("DISCRETE_N");    private final String name;    private AttributeType(final String name) {        this.name = name;    }    public String toString() {        return name;    }}

⌨️ 快捷键说明

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