distances=null;  StringTokenizeritr;  for(inti=0;i distances=null;  StringTokenizeritr;  for(inti=0;i
登录
首页 » 算法 » K-Means算法 mapreduce

K-Means算法 mapreduce

于 2023-02-01 发布 文件大小:25.55 kB
0 230
下载积分: 2 下载次数: 1

代码说明:

public class KmeansMapper extends MapReduceBase implements   Mapper {  // one coodinate(data)  private List coordinate = new ArrayList();  private BasicKMeansTool basicKmeans = new BasicKMeansTool();  public void map(LongWritable key, Text value,    OutputCollector midoutput,    Reporter arg3) throws IOException {   // TODO Auto-generated method stub   String line = value.toString();   String[] dataList = line.split(",");   List distances = null;   StringTokenizer itr;   for (int i = 0; i < dataList.length; i++) {    itr = new StringTokenizer(dataList[i]);  &nbs

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 是和“常用的计算机数值算法和程序的C++版本,和Q ..
    是《计算机常用数值计算算法与程序 C++版》一书的配套C++程序源代码文件,每个源程序文件的文件扩展名都使用.cpp形式。这些C++程序已经在微软公司Windows 平台下的Virsual C++ 6.0环境下通过-is "commonly used computer numerical algorithms and procedures C version," a book supporting the C source code file, the source files extensions are used. Cpp form. These procedures have been in C Microsoft Windows platform under the Virsual C 6.0 environment through
    2022-05-29 11:24:03下载
    积分:1
  • 约瑟夫环,运用了数据结构中的链结构。具体请详细观察源程序...
    约瑟夫环,运用了数据结构中的链结构。具体请详细观察源程序-Joseph Wan, the use of the data structure in the chain structure. Please observe the specific source code
    2022-03-09 12:41:47下载
    积分:1
  • MIMEQP编-解码
    资源描述MIMEQP编-解码,最可惜的是已经被编译过了,但是界面全部被独立出来了的,可以自行更改,只是不能研究程序的内部结构……
    2022-06-11 23:16:02下载
    积分:1
  • superpiexl 段
    superpiexl 是一种分割方法和理念,将图像分割成一个个类似大pixel的块儿,艾玛,我的表述怎么这么不给力,总之,它是图像预处理过程。这里上传的这个code,是superpiexl的实现,可以直接使用,观察图像分割的结果,enjoy it!
    2022-03-19 11:17:10下载
    积分:1
  • opengl 茶壶
    此程序绘制在 visual studio c + + 的计算机图形 3D 对象中使用 opengl 的犹他茶壶。此代码摘自补充材料,为 Chapter.This 程序为犹他茶壶、 茶杯和茶勺,使用数据集,并生成贝塞尔曲面使用 OpenGL 评价
    2022-12-23 02:05:03下载
    积分:1
  • operating system, the solution Deadlock
    操作系统中,有关死锁的解决方法-银行家算法,C++编写.-operating system, the solution Deadlock- bankers algorithms, written in C++.
    2022-09-05 00:20:02下载
    积分:1
  • JAVA 100种算法源码
    近一百种算法的源码,包括:bin_sort, huffman, BD, dijkstra, maymult等等。。 能够让JAVA初学者迅速掌握核心算法以及编程能力。。 JAVA是一种面向对象的编程语言,应用广泛。。。
    2023-08-10 09:10:03下载
    积分:1
  • 多小波matlab程序包
    多小波matlab程序包-Multiwavelet Matlab package
    2023-06-14 16:30:05下载
    积分:1
  • 素性检测的Java程序
    素性检测的Java程序-Primality Testing Java programs
    2022-02-24 16:52:29下载
    积分:1
  • 使用 c + + 中的计算器程序
    这是其中包含的 c + + 代码 1 数学操作 2 三角操作 3 基地 N (操作 + 养护) 4 方程求解 (2 和 3 的顺序) 5 复杂操作 6 矩阵复杂操作
    2022-04-30 10:18:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载