📄 k-means.cpp
字号:
// K-means.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
/*********************************************************/
/* */
/* k-means.cpp */
/* ========= */
/* */
/* C++ programme to */
/* Non-Linking Topic-Independent */
/* Web Key-resource Page Selection */
/* Based on K-means Clustering k-means */
/* clustering on 3D data */
/* */
/* Written for Data Mining Project */
/* */
/* Version 1: ChenyuDong 01/05/09 */
/* */
/* ssdut of dlut ,Dalian,China */
/* e-mail: knifecyd@sina.com */
/* */
/* To compile under windows: */
/* */
/* */
/* */
/* */
/* */
/* */
/*********************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <math.h>
#include <ctype.h>
#include "KMeans.h"
void main(int argc , char *argv [])
{
KMeans km;
// km.readInstance("IN333.txt");
// km.readInstance("tt.txt");
km.readInstance("IN--.txt"); ///已被记录的实验结果
km.run();
cout<<"hello world"<<endl;
//return(0);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -