?? clustering.java
字號:
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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -