johnmyleswhite/Clustering.jl — pull request #8 by davidavdav (2013-12-19 11:52:49+00:00)
Title: Added metric option

This patch would allow kmeans to use a different distance metric through a "metric=" option.

I am testing/using this now for CosineDist() metric. That seems to work, although every once/while the objective function increases in a step.