随笔分类 -  数据挖掘

摘要:#include<cstdio> #include<algorithm> using namespace std; int n,k=1,maxi; double mins;//最小支持度 int d[15][15];//交易数据集 struct item//项集类型 { int cnt;//元素的个 阅读全文
posted @ 2022-05-27 20:14 Excim 阅读(59) 评论(0) 推荐(0)
摘要:#include<cstdio> struct node { int id; double tall,dif;//身高和相异度 int type;//类型 假定矮个为0,中等为1,高个为2 }a[105],e[105]; int cnt[10],maxcnt,typ=-1; int n,k; dou 阅读全文
posted @ 2022-05-06 08:54 Excim 阅读(51) 评论(0) 推荐(0)
摘要:#include<cstdio> #include<cmath> struct node { double x,y; int bl;//bl属性储存每个点属于哪个簇 }a[105],b[105],c[15];//a代表原始的点,b表示重新分配后的簇,c代表簇中心 double dist(node x 阅读全文
posted @ 2022-04-22 09:12 Excim 阅读(52) 评论(0) 推荐(0)