91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

計算聚類算法評價指標之一:Rand Index(需要兩個類標向量) 根據類標繪制數據散布圖(2D or 3D)

資源截圖

代碼片段和文件信息

function?drawdataset(datasetlabel)
[nm]?=?size(dataset);
if?nargin?==?1
????label?=?ones(1n);
end
colorNumber?=?max(label);
colorMode?=?char(‘r+‘‘b+‘‘g+‘‘y+‘‘ro‘‘bo‘‘go‘‘yo‘‘rx‘‘bx‘‘gx‘‘yx‘‘r.‘‘b.‘‘g.‘‘y.‘);

for?i?=?1:colorNumber
????colorAndMode?=?colorMode(i:);
????theNum?=?find(label==i);
switch?m
????case?2
????????plot(dataset(theNum1)dataset(theNum2)colorAndMode);
????case?3
????????plot3(dataset(theNum1)dataset(theNum2)dataset(theNum3)colorAndMode);
????otherwise
????????error(‘cant?draw‘);

end
hold?on
end
end



?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????581??2013-05-20?15:25??drawdataset.m
?????文件?????????572??2013-02-20?18:38??RandIndex.m

評論

共有 條評論