k-means.cpp

来自「经典的K-means对非链接主题无关网页关键资源页面判定」· C++ 代码 · 共 54 行

CPP
54
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?