Using different distances with evalclusters
显示 更早的评论
Hey everyone!
I would like to use the evalclusters function with linkage method. However, the doc for the function states that specifying 'linkage' in input in evalclusters will use agglorometive clustering with ward's distance. However, I would like to use complete distance as opposed to ward's. I've tried this to no avail:
f = @(X)linkage(X,'complete');
eva = evalclusters(Data,f,'klist',[1:6]);
All this does is return an empty Evaluation object with NaNs as the outputs.
How would I go about specifying distance in these functions?
Any help would be great. Thanks!
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Cluster Visualization and Evaluation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!