-
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
-
《计算机算法基础》关于选择问题算法:找第k小元素,时间复杂度为O(n);...
《计算机算法基础》关于选择问题算法:找第k小元素,时间复杂度为O(n);-"computer algorithm based" on the choice of algorithm : k find small elements, time complexity of O (n);
- 2022-02-27 01:43:45下载
- 积分:1
-
operating system, the solution Deadlock
操作系统中,有关死锁的解决方法-银行家算法,C++编写.-operating system, the solution Deadlock- bankers algorithms, written in C++.
- 2022-09-05 00:20:02下载
- 积分:1
-
分形算法和程序设计2章,用的是C语言程序设计
分形算法与程序设计 第2章VC语言程序设计-Fractal Algorithms and Program Design Chapter 2 VC Language Program Design
- 2022-10-04 01:05:03下载
- 积分:1
-
C++基础代码
这是C++特别基础的几个代码,里面涉及的算法比较少,主要是C++的结构,通俗易懂,对于初学C++的同学有一定的帮助,可以打印出来看
- 2022-03-09 18:19:49下载
- 积分:1
-
1, one dollar three regression equations CubicMultinomialRegress.cs equation mod...
一、 一元三次回归方程 CubicMultinomialRegress.cs
方程模型为Y=a*X(3)+b*X(2)+c*X(1)+d
public override double[] buildFormula()
得到系数数组,存放顺序与模型系数相反,即该数组中系数的值依次是d,c,b,a。
以后所述所有模型的系数存放均与此相同(多元线性回归方程除外)。
public override double forecast(double x)
预测函数,根据模型得到预测结果
public override double computeR2()
计算相关系数(决定系数),系数越接近1,数据越满足该模型。
-1, one dollar three regression equations CubicMultinomialRegress.cs equation model for Y = a* X (3)+ B* X (2)+ C* X (1)+ Dpublic override double [] buildFormula () get coefficient array, store order and model coefficients contrary, that is, the array is followed by the value of coefficient d, c, b, a. After all the model described in the coefficient of storage are the same (except for multiple linear regression equation). public override double forecast (double x) prediction function, according to the results of model prediction public override double computeR2 () calculated the correlation coefficient (determination coefficient), coefficient of the closer one, the dat
- 2022-01-26 07:28:21下载
- 积分:1
-
跳动的心 点阵51单片机
应用背景通过一个跳动的心,来演示点阵屏的使用,和学习51单片机如何驱动点阵关键技术通过51单片机对点阵的操作,显示出一个心形的图案,并通过定时器做出图案动态显示
- 2022-05-16 21:05:01下载
- 积分:1
-
实验数据的等距五点三次平滑
一. 功能 用五点三次平滑公式., 对等距节点上的实验数据进行平滑,力争消除随机误差的影响, 提高实验数据的质量 ....
实验数据的等距五点三次平滑
一. 功能 用五点三次平滑公式., 对等距节点上的实验数据进行平滑,力争消除随机误差的影响, 提高实验数据的质量 .-experimental data smoothing offset a 5.3 times. Functional with 5.3 times smoothing formula. The equidistant nodes on the experimental data smoothing, and strive to eliminate the impact of random error, improve the quality of experimental data.
- 2022-04-23 19:48:39下载
- 积分:1
-
This program generates interpolation function for input data in three methods:...
This program generates interpolation function for input data in three methods:
1-Newton forward method
2-Newton backward method
3-lagrange method
- 2022-07-07 06:09:44下载
- 积分:1
-
用于无记忆固态功率放大器 Rapp模型;
用于无记忆固态功率放大器 Rapp模型;-Rapp
- 2022-01-28 01:41:56下载
- 积分:1