2012年6月14日

分类判定树-ID3算法

摘要: 原创作品,转载请指明出处,谢谢!这个算法很简单,我偷懒了,谢谢各位捧场啊,哈哈#include <iostream>#include <string>#include <vector>#include <map>#include <stdio.h>#include <algorithm>#include <cmath>using namespace std;#define MAXLEN 6//输入每行的数据个数//多叉树的实现//1 广义表//2 父指针表示法,适于经常找父结点的应用//3 子女链表示法,适于经 阅读全文

posted @ 2012-06-14 10:54 _Clarence 阅读(340) 评论(0) 推荐(0) 编辑

频繁模式挖掘FP_growth(频繁增长树)算法

摘要: 原创作品,转载请指明出处,谢谢!#include <iostream>#include <map>#include <set>#include <vector>#include <cstring>#include <stdio.h>#include <algorithm>using namespace std;typedef struct CSNode{ //商品编号 string item; //次数 int count; //父节点,孩子节点,兄弟节点 int parent,firstchild,nexts 阅读全文

posted @ 2012-06-14 10:50 _Clarence 阅读(487) 评论(0) 推荐(0) 编辑

频繁模式挖掘Apriori算法

摘要: 论文我也没有怎么看,看的是书上的,书上讲得很明白,鼓励大家自己写写。有急需的同学可以参考一下我的代码,希望对大家有用。原创作品,转载请指明出处,谢谢!#include <iostream>#include <stdio.h>#include <cstring>#include <vector>#include <algorithm>#include <map>using namespace std;map<string,int> C;map<string,int> L;vector <int& 阅读全文

posted @ 2012-06-14 10:46 _Clarence 阅读(359) 评论(0) 推荐(0) 编辑

相关系数Rab

摘要: 原创作品,转载请指明出处,谢谢!#include <iostream>#include <stdio.h>#include <vector>using namespace std;struct Rab { int num; vector <float> age; vector <float>value; float age_avg,value_avg; void init() { for (int i=0; i<num; i++) { age_avg+=age[i]; value_avg+=value[i]; } age_avg 阅读全文

posted @ 2012-06-14 10:41 _Clarence 阅读(158) 评论(0) 推荐(0) 编辑

导航