instsampleelement.java

来自「基于数据挖掘的决策树改进算法和贝叶斯改进算法」· Java 代码 · 共 36 行

JAVA
36
字号
package shared;
import java.lang.*;

/** Internal structure for the InsanceList class. Used for taking samples from the
 * list.
 * @see InstanceList
 */
public class InstSampleElement {   // used for sample_with_replacement--should not be
    // global, but needed for template instantiation
    /** This class has no access to a copy constructor.
     * @param source The InstSampleElement to be copied.
     */
    private InstSampleElement(InstSampleElement source){}
    
    /** This class has no access to an assign method.
     * @param source The InstSampleElement to be copied.
     */
    private void assign(InstSampleElement source){}
    
    // Public member data
    /** The Instance object held in this InstSample.
     */
    public Instance pix;

    /** TRUE if used in a sample, FALSE otherwise.
     */
    public boolean flag;
    
    /** Constructor.
     */
    InstSampleElement() {
        pix = null;
        flag = false;
    }
}

⌨️ 快捷键说明

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