![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据挖掘
闲人想忙人Mr. jiang
知道自己要什么
展开
-
C语言简单实现ID3算法
C语言简单实现ID3算法 #include <stdio.h> #include <math.h> typedef struct N_node { int item[100]; } N_node; N_node n[100][100]; N_node f[100][100]; double s[100]; //s数组用于存放信息熵 double sum[100]; int ID[100][100] = {0}; //自己更改数据 int ID3[6][4] = {1,原创 2021-11-23 17:12:04 · 1621 阅读 · 0 评论 -
C语言简单实现K-means算法
C语言简单实现K-means算法 #include <stdio.h> #include <math.h> typedef struct Node { double x; double y; int n; } Node; typedef struct lNode { struct Node k[100]; } lNode; lNode s[100]; lNode s1[100]; double a[100]; // x的中心值 double b[100]; /原创 2021-11-23 17:06:21 · 1129 阅读 · 0 评论 -
C语言简单实现EM算法
C语言简单实现EM算法 #include <stdio.h> #include <math.h> int main() { int i, j; //H正面:0;T反面:1. int n[5][10] = {0, 1, 1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0,原创 2021-11-23 17:01:24 · 710 阅读 · 0 评论