具有任意距离函数MATLAB的K均值算法(Chebyshev距离) [英] K-Means Algorithm with Arbitrary Distance Function MATLAB (Chebyshev Distance)
本文介绍了具有任意距离函数MATLAB的K均值算法(Chebyshev距离)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有一种方法可以在K均值中设置比这五种方法更远的距离 在Matlab中,例如Chebyshev距离:
Is there a way to set another distance in the K-means than those five implemented in the Matlab, for example the Chebyshev distance:
D = max(abs(xj-xi))
D=max(abs(xj-xi))
谢谢.
最好
Pavlos
推荐答案
如果您没有使用K-means的任何特定原因,并且可以应付分层聚类,则可以使用
If you don't have any specific reason for using K-means, and can cope with Hierarchical Agglomerative Clustering, than you can use the clusterdata
function. It works also with chebyshev distance.
这篇关于具有任意距离函数MATLAB的K均值算法(Chebyshev距离)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文