FCM 算法用一个Job寻找cluster的中心点。在map的初始化节点,加载初始化(或上一轮迭代的结果)中心点。在map中计算point 和每一个簇的亲和度。在combiner计算同一个cluster的参数,该过程只能计算同一cluster的局部信息。在reduce中首先计算同一个cluster的全局参数,然后计算该cluster是否收敛,输出cluster。...
分类:
其他好文 时间:
2014-05-26 04:12:39
阅读次数:
302
Problem Description
In a 2_D plane, there is a point strictly in a regular polygon with N sides. If you are given the distances between it and N vertexes of the regular polygon, can you calculate t...
分类:
其他好文 时间:
2014-05-26 03:50:40
阅读次数:
252
Point.h
/*
* Point.h
*
* Created on: 2014年5月22日
* Author: John
*/
#include
using namespace std;
#ifndef POINT_H_
#define POINT_H_
class Point {
private:
int x;
int y;
...
分类:
编程语言 时间:
2014-05-26 03:19:07
阅读次数:
399
1.基础工具:e2label /device/xxx [new label name]
显示/设定设备的label名称 2.e2fsck 修复工具,用-b 指定备用的superblock位置 3.mke2fs –n /devce/xxx
模拟创建ext文件系统 4.mount –L labelnam...
分类:
其他好文 时间:
2014-05-26 02:55:17
阅读次数:
383
UIKIT_EXTERN NSString *NSStringFromCGPoint(CGPoint
point);UIKIT_EXTERN NSString *NSStringFromCGSize(CGSize size);UIKIT_EXTERN
NSString *NSStringFromCG...
分类:
其他好文 时间:
2014-05-26 02:44:06
阅读次数:
209
http://acm.hdu.edu.cn/showproblem.php?pid=1086跨立实验算法#include#include#include#includeusing
namespace std;struct Point{ double x,y;} ;struct Line{ ...
分类:
其他好文 时间:
2014-05-26 02:10:52
阅读次数:
224
前几天手贱,一不小心把/usr给删掉了。于是刻了个backtrack3的启动盘,进去系统备份。我用mount /dev/sda6
/mnt/home挂载了home,然后tar cf /mnt/usb0/bak.tar
/mnt/home备份。备份完了后,我在backtrack3中的虚拟目录到处逛,忽...
分类:
系统相关 时间:
2014-05-26 01:54:00
阅读次数:
1632
继续并发专题~
这次介绍CyclicBarrier:看一眼API的注释:
/**
* A synchronization aid that allows a set of threads to all wait for
* each other to reach a common barrier point. CyclicBarriers are
* useful in program...
分类:
编程语言 时间:
2014-05-25 18:15:06
阅读次数:
316
我自己在服务器上装了centos 6.5系统,默认用的就是UEFI,没有注意可以只用GRUB,接着问题就出现了,我在服务器内安装了另外一块带grub启动系统的硬盘,
这个硬盘启动系统后,如果去掉此块硬盘,再重新启动,总是识别不出来centos 6.5的UEFI,这个可以通过启动主板的UEFI,然后用UEFI的命令:
mount fs0
fs0:
cd EFI
cd redhat
grub.ef...
分类:
其他好文 时间:
2014-05-24 18:16:27
阅读次数:
417
今天阅读opencv2.0手册的时候,看到一句话,很有感触:Unless you are
targeting embedded platforms, there’s no point to using the old methods(unless
you’re a masochist program...
分类:
其他好文 时间:
2014-05-24 09:51:04
阅读次数:
258