当前位置:网站首页>【数据聚类】基于多元宇宙优化DBSCAN实现数据聚类分析附matlab代码
【数据聚类】基于多元宇宙优化DBSCAN实现数据聚类分析附matlab代码
2022-07-07 09:53:00 【Matlab科研工作室】
1 简介
针对DBSCAN聚类算法对参数敏感,参数选取依靠经验的问题,文章提出了一种基于多元宇宙优化的DBSCAN聚类(MVO-DBSCAN)算法.
2 部分代码
%%% main function:主函数clc;clear;close all;tic;% 读取数据% load('C:\Users\Administrator\Desktop\MATLAb Programming practice\MVO-DBSCAN\X.mat');load X.mat;% 数据标签train_labels=[];for i=1:3train_labels=[train_labels;i*ones(100,1)];end%% run MVO AlgorithmUniverses_no=60; %Number of search agents (universes)Max_iteration=500; %Maximum numbef of iterations% 待优化参数(宇宙)的上、下界和维度lb=0.01;ub=0.5;dim=1;% 定义参数MinPtsMinPts =4;[Best_score,Best_pos,cg_curve]=MVO(Universes_no,Max_iteration,lb,ub,dim,MinPts,X,train_labels);display(['The best solution obtained by MVO is : ', num2str(Best_pos)]);display(['The best optimal value of the objective funciton found by MVO is : ', num2str(Best_score)]);%% Run DBSCAN Clustering AlgorithmEps=Best_pos;labels=DBSCAN(X,Eps,MinPts);figure;PlotClusterinResult(X, labels);title(['DBSCAN Clustering (\epsilon = ' num2str(Eps) ', MinPts = ' num2str(MinPts) ')']);toc;
3 仿真结果

4 参考文献
[1]王李彧, 孙斌. 基于改进的DBSCAN聚类算法的云任务调度策略研究[C]// 2016年全国通信软件学术会议. 2016.
博主简介:擅长智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,相关matlab代码问题可私信交流。
部分理论引用网络文献,若有侵权联系博主删除。
边栏推荐
- There are so many factors that imprison you
- Easyui学习整理笔记
- Activity lifecycle
- . Net Maui performance improvement
- What is high cohesion and low coupling?
- 问下flinkcdc2.2.0的版本,支持并发,这个并发是指多并行度吗,现在发现,mysqlcdc全
- 【最短路】Acwing1128信使:floyd最短路
- SwiftUI 4 新功能之掌握 WeatherKit 和 Swift Charts
- The road to success in R & D efficiency of 1000 person Internet companies
- STM32 entry development NEC infrared protocol decoding (ultra low cost wireless transmission scheme)
猜你喜欢

相机标定(2): 单目相机标定总结

The annual salary of general test is 15W, and the annual salary of test and development is 30w+. What is the difference between the two?

About how to install mysql8.0 on the cloud server (Tencent cloud here) and enable local remote connection

sql里,我想设置外键,为什么出现这个问题

学习笔记|数据小白使用DataEase制作数据大屏

In SQL, I want to set foreign keys. Why is this problem

Programming examples of stm32f1 and stm32subeide -315m super regenerative wireless remote control module drive

electron添加SQLite数据库

竟然有一半的人不知道 for 与 foreach 的区别???

Flet教程之 17 Card卡片组件 基础入门(教程含源码)
随机推荐
技术分享 | 抓包分析 TCP 协议
In SQL, I want to set foreign keys. Why is this problem
OneDNS助力高校行业网络安全
STM32 entry development write DS18B20 temperature sensor driver (read ambient temperature, support cascade)
Enclosed please find. Net Maui's latest learning resources
electron 添加 SQLite 数据库
浙江大学周亚金:“又破又立”的顶尖安全学者,好奇心驱动的行动派
【系统设计】指标监控和告警系统
【最短路】Acwing1128信使:floyd最短路
测试开发基础,教你做一个完整功能的Web平台之环境准备
自律,提升自制力原来也有方法
[Yugong series] go teaching course 005 variables in July 2022
sql里,我想设置外键,为什么出现这个问题
【紋理特征提取】基於matlab局部二值模式LBP圖像紋理特征提取【含Matlab源碼 1931期】
测试优惠券要怎么写测试用例?
LeetCode - 面试题17.24 最大子矩阵
Programming examples of stm32f1 and stm32subeide -315m super regenerative wireless remote control module drive
electron添加SQLite数据库
核舟记(一):当“男妈妈”走进现实,生物科技革命能解放女性吗?
【最短路】ACwing 1127. 香甜的黄油(堆优化的dijsktra或spfa)