{"action":"created","issue":{"url":"https://api.github.com/repos/simple-statistics/simple-statistics/issues/129","labels_url":"https://api.github.com/repos/simple-statistics/simple-statistics/issues/129/labels{/name}","comments_url":"https://api.github.com/repos/simple-statistics/simple-statistics/issues/129/comments","events_url":"https://api.github.com/repos/simple-statistics/simple-statistics/issues/129/events","html_url":"https://github.com/simple-statistics/simple-statistics/issues/129","id":116963427,"number":129,"title":"New NPM release needed","user":{"login":"stevage","id":678344,"avatar_url":"https://avatars.githubusercontent.com/u/678344?v=3","gravatar_id":"","url":"https://api.github.com/users/stevage","html_url":"https://github.com/stevage","followers_url":"https://api.github.com/users/stevage/followers","following_url":"https://api.github.com/users/stevage/following{/other_user}","gists_url":"https://api.github.com/users/stevage/gists{/gist_id}","starred_url":"https://api.github.com/users/stevage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevage/subscriptions","organizations_url":"https://api.github.com/users/stevage/orgs","repos_url":"https://api.github.com/users/stevage/repos","events_url":"https://api.github.com/users/stevage/events{/privacy}","received_events_url":"https://api.github.com/users/stevage/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-15T00:35:02Z","updated_at":"2015-12-01T02:43:05Z","closed_at":"2015-11-30T21:34:34Z","body":"```\r\nss.ckmeans([1,2,2,2,3,4,5,99],5)\r\n=> [ [ 1, 2 ], [ 2, 2 ], [ 3, 4 ], [ 5 ], [ 99 ] ]\r\n```\r\n\r\nI'm not sure if I'm misunderstanding how `ckmeans` should operate, but this behaviour seems very odd to me. I don't really get how a value (`2`) can be in multiple clusters. Visually, this would mean one region with a value of `2` is represented with a different colour from two other regions with the value `2`. That can't be right?\r\n\r\nIt also seems problematic in terms of using this function: how would I decide which `2` goes into which cluster?\r\n\r\nAm I simply not understanding right, or is there actually a problem here?\r\n\r\nExploring further, it really feels like a bug:\r\n\r\n```\r\nss.ckmeans([1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,5],3)\r\n[ [ 1, 2 ],\r\n  [ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ],\r\n  [ 5 ] ]\r\n```"},"comment":{"url":"https://api.github.com/repos/simple-statistics/simple-statistics/issues/comments/160830967","html_url":"https://github.com/simple-statistics/simple-statistics/issues/129#issuecomment-160830967","issue_url":"https://api.github.com/repos/simple-statistics/simple-statistics/issues/129","id":160830967,"user":{"login":"stevage","id":678344,"avatar_url":"https://avatars.githubusercontent.com/u/678344?v=3","gravatar_id":"","url":"https://api.github.com/users/stevage","html_url":"https://github.com/stevage","followers_url":"https://api.github.com/users/stevage/followers","following_url":"https://api.github.com/users/stevage/following{/other_user}","gists_url":"https://api.github.com/users/stevage/gists{/gist_id}","starred_url":"https://api.github.com/users/stevage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevage/subscriptions","organizations_url":"https://api.github.com/users/stevage/orgs","repos_url":"https://api.github.com/users/stevage/repos","events_url":"https://api.github.com/users/stevage/events{/privacy}","received_events_url":"https://api.github.com/users/stevage/received_events","type":"User","site_admin":false},"created_at":"2015-12-01T02:43:05Z","updated_at":"2015-12-01T02:43:05Z","body":"Thanks!"}}