# Louvain-clustering
MATLAB simulation of clustering using Louvain algorithm, and comparing its performance with K-means.
Here is two sets of code.
----------------------------------------------------------------------------------------------------------------------------------
In the branch "clustering", the code set groups the nodes using Louvain (coded by us),
Louvain (code you recommend on Github) and K-means (from MATLAB, and it's Kmeans++, to be exact).
And the result of clustering is showed in figure 2, 3 and 4, respectively.
Figure 1 shows the initial postion of all nodes.
——>The main entrence of this code set is "clustering.m". <——
The function of the rest m files is listed as follows.
"cluster_jl.m" is the Louvain code from Github;
"dq.m" calculates the differences of Modularity Q after each iteration, using the term given in your paper;
"Louvain.m" is the main function of Louvain coded by us;
"modularity.m" calculates modularity Q;
"PPP.m" generates inital position of nodes following poisson distribution at the beginning of the programm;
"shrinkcluster.m" shrinks multiple nodes into a new one when it's need in the Louvain algorithm.
Parameters like numbers of cluster, average number of nodes, etc, can be modified in clustering.m.
----------------------------------------------------------------------------------------------------------------------------------
In the branch "compare", the code set compares the performances of Louvain algorithm with Kmeans.
There is only minor difference between the m files here and those in the clustering folder, that is all the functions
of plotting figure are commented because we don't need them here.
"CalcutaleP.m" calcutates the total and average transmit power using the result of clustering.
——>The main entrence of this code set is "compare.m".<——
The result is presented in the form of line chart and a sample chart is showed in
"sample.png" along with the code.
毕业小助手
- 粉丝: 2765
- 资源: 5583
最新资源
- abaqus建立CRTSⅡ型轨道精细模型,dload子程序,列车移动荷载施加,Abaqus轨道精细模型,讲解,crtsⅡ型轨道模型,CRTSⅡ型轨道模型,crts2型轨道模型,轨道静力学分析,轨道不平
- 超融合云平台部署方案实例
- headers-more-nginx-module-v0.34.tar.gz 下载 headers-more-nginx-module是Nginx的第三方模块,它提供了一些额外的功能,用于设置HTTP
- C#运动控制加视觉定位框架,程序用来取放料,控制卡用的是正运动ZMC408CE总线运动控制卡,控制六个电机,XY轴,两个Z轴,两个旋转轴,相机用的是海康,3个海康相机,视觉采取用海康SDK加Halco
- 车用驱动电机原理与控制基础-P146公式(6-67)~(6-70)
- 过程能力分析Cp&Cpk数据计算与绘图
- 自适应巡航控制,ACC,模型预测控制,MPC,纵向跟车避撞控制为分层式控制,上层控制得到期望加速度,下层控制得到对应的期望制动压力和节气门开度 上层控制首先建立考虑前车加速度扰动的离散跟车运动学模型
- 永磁同步电机的高频正弦电压注入的速度观测,Simulink,PMSM,高频正弦
- pip install -upgrade git+https://github.com/mit-han-lab/torchsparse.git@v1.4.0失败
- 活动规则动态匹配,根据购物车中商品的属性进行动态匹配
- 最新TVBOX绿豆U8影视APP源码 新增带直播管理以及加密功能
- html+js+css钢材门户企业站,12个页面,全套
- PythonTip 题库:挑战练习-进阶挑战32~61 题目 + 完整解答代码
- 最新版本dbeaver-24.3.2-x86-64-setup.exe
- customized-theme.zip
- 海陵HLK-TX510人脸识别模块 stm32使用
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈