{"action":"opened","issue":{"url":"https://api.github.com/repos/nudomarinero/wquantiles/issues/4","repository_url":"https://api.github.com/repos/nudomarinero/wquantiles","labels_url":"https://api.github.com/repos/nudomarinero/wquantiles/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/nudomarinero/wquantiles/issues/4/comments","events_url":"https://api.github.com/repos/nudomarinero/wquantiles/issues/4/events","html_url":"https://github.com/nudomarinero/wquantiles/issues/4","id":155098513,"number":4,"title":"Weighted median appears to be incorrect","user":{"login":"dparks1134","id":3688336,"avatar_url":"https://avatars.githubusercontent.com/u/3688336?v=3","gravatar_id":"","url":"https://api.github.com/users/dparks1134","html_url":"https://github.com/dparks1134","followers_url":"https://api.github.com/users/dparks1134/followers","following_url":"https://api.github.com/users/dparks1134/following{/other_user}","gists_url":"https://api.github.com/users/dparks1134/gists{/gist_id}","starred_url":"https://api.github.com/users/dparks1134/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dparks1134/subscriptions","organizations_url":"https://api.github.com/users/dparks1134/orgs","repos_url":"https://api.github.com/users/dparks1134/repos","events_url":"https://api.github.com/users/dparks1134/events{/privacy}","received_events_url":"https://api.github.com/users/dparks1134/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-16T19:08:14Z","updated_at":"2016-05-16T19:08:14Z","closed_at":null,"body":"The weighted median does not appear to be correct, e.g.:\r\n\r\n```\r\n>import weighted as w\r\n>w.median(array([1,2,3]),array([100,1,1]))\r\n1.0198019801980198\r\n```\r\n\r\nShouldn't the weighted median be an element of the data array:\r\nhttps://en.wikipedia.org/wiki/Weighted_median\r\n\r\nIs there another definition of weighted median?"}}