{"action":"created","issue":{"url":"https://api.github.com/repos/annoviko/pyclustering/issues/238","labels_url":"https://api.github.com/repos/annoviko/pyclustering/issues/238/labels{/name}","comments_url":"https://api.github.com/repos/annoviko/pyclustering/issues/238/comments","events_url":"https://api.github.com/repos/annoviko/pyclustering/issues/238/events","html_url":"https://github.com/annoviko/pyclustering/issues/238","id":99274599,"number":238,"title":"[pyclustering.cluster.kmeans] Bug: division by zero","user":{"login":"annoviko","id":6785869,"avatar_url":"https://avatars.githubusercontent.com/u/6785869?v=3","gravatar_id":"","url":"https://api.github.com/users/annoviko","html_url":"https://github.com/annoviko","followers_url":"https://api.github.com/users/annoviko/followers","following_url":"https://api.github.com/users/annoviko/following{/other_user}","gists_url":"https://api.github.com/users/annoviko/gists{/gist_id}","starred_url":"https://api.github.com/users/annoviko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/annoviko/subscriptions","organizations_url":"https://api.github.com/users/annoviko/orgs","repos_url":"https://api.github.com/users/annoviko/repos","events_url":"https://api.github.com/users/annoviko/events{/privacy}","received_events_url":"https://api.github.com/users/annoviko/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/annoviko/pyclustering/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"annoviko","id":6785869,"avatar_url":"https://avatars.githubusercontent.com/u/6785869?v=3","gravatar_id":"","url":"https://api.github.com/users/annoviko","html_url":"https://github.com/annoviko","followers_url":"https://api.github.com/users/annoviko/followers","following_url":"https://api.github.com/users/annoviko/following{/other_user}","gists_url":"https://api.github.com/users/annoviko/gists{/gist_id}","starred_url":"https://api.github.com/users/annoviko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/annoviko/subscriptions","organizations_url":"https://api.github.com/users/annoviko/orgs","repos_url":"https://api.github.com/users/annoviko/repos","events_url":"https://api.github.com/users/annoviko/events{/privacy}","received_events_url":"https://api.github.com/users/annoviko/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-08-05T19:00:17Z","updated_at":"2015-08-06T12:33:25Z","closed_at":"2015-08-06T12:33:25Z","body":"pyclustering.cluster.kmeans consists of bug when number of initial centers are greater than real number of clusters. It leads to division by zero. Unit-tests detected the problem:\r\n- testWrongNumberOfCentersSimpleSample1\r\n- testWrongNumberOfCentersSimpleSample1ByCore\r\n- testWrongNumberOfCentersSimpleSample2\r\n- testWrongNumberOfCentersSimpleSample2ByCore\r\n\r\nCorrection is required by 'master', '0.5.0'."},"comment":{"url":"https://api.github.com/repos/annoviko/pyclustering/issues/comments/128349879","html_url":"https://github.com/annoviko/pyclustering/issues/238#issuecomment-128349879","issue_url":"https://api.github.com/repos/annoviko/pyclustering/issues/238","id":128349879,"user":{"login":"annoviko","id":6785869,"avatar_url":"https://avatars.githubusercontent.com/u/6785869?v=3","gravatar_id":"","url":"https://api.github.com/users/annoviko","html_url":"https://github.com/annoviko","followers_url":"https://api.github.com/users/annoviko/followers","following_url":"https://api.github.com/users/annoviko/following{/other_user}","gists_url":"https://api.github.com/users/annoviko/gists{/gist_id}","starred_url":"https://api.github.com/users/annoviko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/annoviko/subscriptions","organizations_url":"https://api.github.com/users/annoviko/orgs","repos_url":"https://api.github.com/users/annoviko/repos","events_url":"https://api.github.com/users/annoviko/events{/privacy}","received_events_url":"https://api.github.com/users/annoviko/received_events","type":"User","site_admin":false},"created_at":"2015-08-06T12:33:25Z","updated_at":"2015-08-06T12:33:25Z","body":"Have done:\r\nmaster: https://github.com/annoviko/pyclustering/commit/df1384869a47fb44741212a2cf5b2f043e7adcf1\r\n0.5: https://github.com/annoviko/pyclustering/commit/b9807351c5bf8acfe35b881444f434134a067df6"}}