⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 iris3csample.java

📁 用java实现的一种聚类方法
💻 JAVA
字号:
/*
 * iris3CSample.java
 *
 * Created on 2007年5月28日, 下午11:29
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package cindy;

import java.util.*;

/**
 *
 * @author njchenyi
 */
public class iris3CSample extends Sample{
    
    /** Creates a new instance of iris3CSample */
    public iris3CSample() {
    }
    public iris3CSample(String str,int in) {

        StringTokenizer st = new StringTokenizer(str,",");
        //while(st.hasMoreTokens()){
        //System.out.println(st.nextToken());
        //s=st.nextToken();
        //}

        parmNo=4;
        param = new double[parmNo];
        index =in;
        //存储样本参数
        for(int i =0; i<parmNo; i++){
            param[i]=Double.parseDouble(st.nextToken(","));
        }
    }
    public int getIndex(){
        return index;
    }
    
    public double[] getParam(){
        return param;
    }
    
    public int getParmNo(){
        return parmNo;
    }
    

}

⌨️ 快捷键说明

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