Affinity Propagation apclusterK.m Could not find pmin

 

Could not find pmin , apclusterK

Expression or statement is incorrect--possibly unbalanced , apclusterK.m

 

Solution:

N=max(max(s(:,1)),max(s(:,2)));

S=-Inf*ones(N,N);

changed to be 

 

N=max(max(s(:,1)),max(s(:,2)));

S=zeros(N,N);

ref:

http://www.psi.toronto.edu/index.php?q=affinity%20propagation

posted @ 2012-08-14 10:30  emanlee  阅读(467)  评论(0编辑  收藏  举报