当前位置:网站首页>【数据聚类】基于多元宇宙优化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代码问题可私信交流。
部分理论引用网络文献,若有侵权联系博主删除。
边栏推荐
- In depth learning autumn recruitment interview questions collection (1)
- Easyui学习整理笔记
- Electron adding SQLite database
- 【愚公系列】2022年7月 Go教学课程 005-变量
- Excel公式知多少?
- Programming examples of stm32f1 and stm32subeide -315m super regenerative wireless remote control module drive
- audit 移植
- About how to install mysql8.0 on the cloud server (Tencent cloud here) and enable local remote connection
- Le Cluster kubernets en cours d'exécution veut ajuster l'adresse du segment réseau du pod
- Distributed database master-slave configuration (MySQL)
猜你喜欢

浙江大学周亚金:“又破又立”的顶尖安全学者,好奇心驱动的行动派

分布式数据库主从配置(MySQL)

Flet教程之 14 ListTile 基础入门(教程含源码)

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

技术分享 | 抓包分析 TCP 协议

Zhou Yajin, a top safety scholar of Zhejiang University, is a curiosity driven activist

自动化测试框架

MySQL安装常见报错处理大全

The running kubernetes cluster wants to adjust the network segment address of pod

Use metersphere to keep your testing work efficient
随机推荐
清华姚班程序员,网上征婚被骂?
Automated testing framework
【最短路】Acwing1128信使:floyd最短路
Software design - "high cohesion and low coupling"
electron添加SQLite数据库
Briefly introduce closures and some application scenarios
Onedns helps college industry network security
【滤波跟踪】基于matlab捷联惯导仿真【含Matlab源码 1935期】
Verilog design responder [with source code]
R language Visual facet chart, hypothesis test, multivariable grouping t-test, visual multivariable grouping faceting boxplot, and add significance levels and jitter points
Zhou Yajin, a top safety scholar of Zhejiang University, is a curiosity driven activist
R语言可视化分面图、假设检验、多变量分组t检验、可视化多变量分组分面箱图(faceting boxplot)并添加显著性水平、添加抖动数据点(jitter points)
通过环境变量将 Pod 信息呈现给容器
Test the foundation of development, and teach you to prepare for a fully functional web platform environment
禁锢自己的因素,原来有这么多
Nuclear boat (I): when "male mothers" come into reality, can the biotechnology revolution liberate women?
Talk about SOC startup (11) kernel initialization
Complete collection of common error handling in MySQL installation
【滤波跟踪】基于matlab扩展卡尔曼滤波EKF和无迹卡尔曼滤波UKF比较【含Matlab源码 1933期】
Reasons for the failure of web side automation test