clustering.java

来自「上传试试看 不知道 是不是一定成功的」· Java 代码 · 共 24 行

JAVA
24
字号
package k_means;

import java.io.IOException;
import java.util.LinkedList;
import java.util.Random;

/**
 * Clustering process
 * @author YU
 *
 */
public class Clustering
{
	private Cluster[] Clu; //a array of Cluster
	private int k; //the number of the cluster that the user wanted
	private DataInput DataInputFromFile;
	private Double[][] Data;
	private Double[][] Center,CenterOld;//the current and old centers of the clusters
	private LinkedList list;
    /**
     * constrcted function : initialize the attribute
     * @param k is the number of the clustering
     * @param FileName is the name of the file that stores the data
     * @param StrCut is the 鏁版嵁鍒嗛殧绗

⌨️ 快捷键说明

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