Skip to content

Commit

Permalink
Fixed k-means example
Browse files Browse the repository at this point in the history
  • Loading branch information
luccastera committed Feb 4, 2016
1 parent e98b86e commit fc1eedd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -126,6 +126,7 @@ shaman implements the k-means clustering algorithm.
```javascript
var KMeans = require('shaman').KMeans;

var K = 4;
var kmeans = new KMeans(K);

kmeans.cluster(data, function(err, clusters, centroids) {
Expand Down

0 comments on commit fc1eedd

Please sign in to comment.