資源簡介
AP聚類算法的MATLAB實現代碼(.m文件),可以直接運行
代碼片段和文件信息
%
%?[idxnetsimdpsimexpref]=apcluster(sp)??Demo:?Type?“apcluster?“
%
%?APCLUSTER?uses?affinity?propagation?(BJ?Frey?and?D?Dueck?Science?2007)
%?to?identify?exemplars?and?clusters?using?a?set?of?real-valued?pairwise
%?data?point?similarities?as?input.?Each?cluster?is?represented?by?a?data
%?point?called?an?exemplar?and?the?method?iteratively?searches?for
%?clusters?so?as?to?maximize?an?objective?function?called?net?similarity.
%?The?command?apcluster(sp‘plot‘)?plots?the?objective?function.
%?
%?For?N?data?points?there?are?potentially?N^2-N?pairwise?similarities?
%?which?can?be?input?as?an?N-by-N?matrix?‘s‘?where?s(ik)?is?the?
%?similarity?of?point?i?to?point?k?(note:?s(ik)?need?not?equal?s(ki)).
%?In?fact?only?a?smaller?number?of?relevant?similarities?ar
評論
共有 條評論