我正在为 Windows 使用 python 2.6。我正在研究 OpenCv 核心模块。我搜索了 Pycluster 中定义的 kmedoids 函数,但没有得到准确的答案。
我已经在 windows7 中安装了 Pycluster 1.50。有人可以解释如何使用 kmedoids 使用 Eucledian diatnce、L1 和 L2 距离、hellinger 距离和卡方距离吗?
通过搜索我知道到目前为止。
import Pycluster
from Pycluster import distancematrix, kmedoids
kmedoid 函数有四个参数(如下所述),其中一个是距离。但我无法理解如何在 kmedoids 函数中指定不同的距离度量
clusterid, error, nfound = kmedoids (distance, nclusters=2, npass=1, initialid=None)
强烈鼓励有关此事的任何帮助