资源简介
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
评论
共有 条评论