资源简介
量子聚类matlab代码包,内附相关算法资料,希望对大家有所帮助~

代码片段和文件信息
function [minkowski_measurejacard_measurepurityefficiency]=clustmeasure(clustrealClust)
% function [minkowski_measurejacard_measurepurityefficiency]=clustmeasure(clustrealClust)
% input: clust=vector with all the cluster # of each data point
% realClust=vector ofthe starting place of each cluster
% (assuming the data points are sorted accordingly)
pNum=length(clust);
% S=the clutering result in pairs - S(ij)=1 iff data point i and j are asigned to the same cluster
S=(repmat(clust1pNum)==repmat(clust‘pNum1));
for i=1:(length(realClust)-1);
t(realClust(i):(realClust(i+1)-1))=i;
end
l=length(clust);
t(realClust(i+1):l)=i+1;
T=(repmat(t‘1l)==repmat(tl1));
% T=the true clutering (same definition as for S)
sum(sum(T==1));
sum(sum(T~=S));
minkowski_measure=sqrt(sum(sum(T~=S))/sum(sum(T==1)));
S1=S*2-1; % replace 0 for -1
TP=(T==S1); % all palces where both T and S equal 1
jacard_measure = sum(sum(TP))/(sum(sum(T~=S))+sum(sum(TP)));
efficiency = sum(sum(TP))/sum(sum(T==1)); % n11/(n10 + n11)
purity= sum(sum(TP))/sum(sum(S==1)); % n11/(n01 + n11)
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 114000 2010-12-16 21:39 QC\Algorithm for data clustering in pattern recognition problems ba
文件 1132 2002-05-25 22:36 QC\clustMeasure.m
文件 588 2002-05-25 22:29 QC\fineCluster.m
文件 644 2002-05-25 22:27 QC\graddesc.m
文件 271 2002-05-25 22:29 QC\plotClust.m
文件 2150 2002-05-25 22:37 QC\qc.m
文件 1371 2002-05-25 23:15 QC\QCsc
文件 459920 2002-05-25 22:43 QC\spellman-demo.mat
目录 0 2010-12-22 10:34 QC
----------- --------- ---------- ----- ----
580076 9
相关资源
- 高灵敏度GPS接收机MATLAB仿真,附捕获
- 基于MATLAB的质点弹道计算与外弹道优
- 阵列天线的matlab仿真
- MATLAB 经典程序源代码大全
- MATLAB小波软阈值去噪代码33473
- 天线阵的波束形成在MATLAB仿真程序及
- 非线性SVM算法-matlab实现
- 《MATLAB 智能算法超级学习手册》-程序
- 组合导航matlab程序
- 读取txt文件内容matlab代码实现
- Matlab实现基于相关的模板匹配程序
- matlab优化工具箱讲解
- 基于MATLAB的快速傅里叶变换
- 光纤传输中的分布傅立叶算法matlab实
- 基于matlab的图像处理源程序
- matlab 椭圆拟合程序
- 算术编码解码matlab源代码
- optical_flow 光流法 matlab 实现程序
- 引导图像滤波器 Matlab实现
- 分形几何中一些经典图形的Matlab画法
- OFDM系统MATLAB仿真代码
- SVM工具箱(matlab中运行)
- 图像小波变换MatLab源代码
- LU分解的MATLAB实现
- 冈萨雷斯数字图像处理matlab版(第三
- 替代数据法的matlab程序
- 用matlab实现的多站定位系统性能仿真
- 通过不同方法进行粗糙集属性约简m
- k近邻算法matlab实现
- matlab识别系统
评论
共有 条评论