kaneplusplus/biganalytics — pull request #1 by akiniwa (2014-12-17 16:32:31+00:00)
Title: Add Cosine distance.

```R
# Default distance is Euclid.
bigkmeans(x, centers, iter.max = 10, nstart = 1)
bigkmeans(x, centers, iter.max = 10, nstart = 1, dist="euclid")

# Cosine distance.
bigkmeans(x, centers, iter.max = 10, nstart = 1, dist="cosine")
```