-
K-Means算法 mapreduce
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
- 2023-02-01 17:45:04下载
- 积分:1
-
用C语言编写的八数码问题算法
用C语言编写的八数码问题算法-C language prepared by the eight digital Problem
- 2022-01-25 21:09:19下载
- 积分:1
-
数值分析算法矩阵的LU分解法
数值分析算法矩阵的LU分解法-numerical analysis algorithm matrix LU decomposition
- 2022-03-18 12:30:30下载
- 积分:1
-
自己编的一个求无约束最优化解的单纯形
自己编的一个求无约束最优化解的单纯形-themselves for a series of unconstrained optimal resolve Simplex
- 2022-05-06 19:27:18下载
- 积分:1
-
一些矩阵运算的C代码实现:矩阵一般运算,以及求逆,QR分解,householder变化,LDU, LU分解...
一些矩阵运算的C代码实现:矩阵一般运算,以及求逆,QR分解,householder变化,LDU, LU分解-some matrix calculation of C code to achieve : Matrix general computing, and inversion, QR decomposition, the householder changes, LDU, LU decomposition, etc.
- 2022-03-19 11:41:21下载
- 积分:1
-
用opencv实现的图像直方图均衡化处理
用opencv实现的图像直方图均衡化处理,用HistogramStat函数统计图像中三个通道中的像素总数,用Histogram函数对其进行直方图均衡化处理
- 2022-03-16 01:49:04下载
- 积分:1
-
用像素点任意直线和圆
用中点画线和中点画圆法绘制任意直线段以及任意大小的圆,在窗口动态绘制,且用像素点进行描绘。
- 2022-01-25 17:28:14下载
- 积分:1
-
数组为8位char型数值,通过该函数可以计算出数组的16位循环校验码。...
数组为8位char型数值,通过该函数可以计算出数组的16位循环校验码。-Array for the 8-bit char type values can be calculated through the function of an array of 16 cycle parity-check codes.
- 2023-06-20 15:25:03下载
- 积分:1
-
数字的阶乘算法.按分解的方法,将一个大数的阶乘用数组实现....
数字的阶乘算法.按分解的方法,将一个大数的阶乘用数组实现.-digit factorial algorithm. According to the decomposition method, a majority of the factorial using arrays to achieve.
- 2022-02-26 18:36:29下载
- 积分:1
-
The graphic model NURBS algorithm realization source code, to the person which...
三维图形学NURBS算法实现源代码,对搞三维图形编程的人有帮助-The graphic model NURBS algorithm realization source code, to the person which does the three dimensional graph programming has helps
- 2022-09-03 23:55:02下载
- 积分:1