{"action":"created","issue":{"url":"https://api.github.com/repos/apache/incubator-metron/issues/401","repository_url":"https://api.github.com/repos/apache/incubator-metron","labels_url":"https://api.github.com/repos/apache/incubator-metron/issues/401/labels{/name}","comments_url":"https://api.github.com/repos/apache/incubator-metron/issues/401/comments","events_url":"https://api.github.com/repos/apache/incubator-metron/issues/401/events","html_url":"https://github.com/apache/incubator-metron/pull/401","id":197020603,"number":401,"title":"METRON-637: Add a STATS_BIN function to Stellar.","user":{"login":"cestella","id":540359,"avatar_url":"https://avatars.githubusercontent.com/u/540359?v=3","gravatar_id":"","url":"https://api.github.com/users/cestella","html_url":"https://github.com/cestella","followers_url":"https://api.github.com/users/cestella/followers","following_url":"https://api.github.com/users/cestella/following{/other_user}","gists_url":"https://api.github.com/users/cestella/gists{/gist_id}","starred_url":"https://api.github.com/users/cestella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cestella/subscriptions","organizations_url":"https://api.github.com/users/cestella/orgs","repos_url":"https://api.github.com/users/cestella/repos","events_url":"https://api.github.com/users/cestella/events{/privacy}","received_events_url":"https://api.github.com/users/cestella/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-12-21T20:03:43Z","updated_at":"2016-12-22T23:10:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/incubator-metron/pulls/401","html_url":"https://github.com/apache/incubator-metron/pull/401","diff_url":"https://github.com/apache/incubator-metron/pull/401.diff","patch_url":"https://github.com/apache/incubator-metron/pull/401.patch"},"body":"When passing parameters to models, it's often useful to pass the binned representation of a variable based on an empirical statistical distribution, rather than the actual variable. This function should accept a set of percentile bins and a statistical sketch and a value. It should return the index where the percentile of the value falls.\r\n\r\nFor instance, consider the value 17 who is percentile 27. If we use 25, 75, 95 to define our bins, this function would return 1, because its percentile, 27, is between 25 and 75."},"comment":{"url":"https://api.github.com/repos/apache/incubator-metron/issues/comments/268911187","html_url":"https://github.com/apache/incubator-metron/pull/401#issuecomment-268911187","issue_url":"https://api.github.com/repos/apache/incubator-metron/issues/401","id":268911187,"user":{"login":"cestella","id":540359,"avatar_url":"https://avatars.githubusercontent.com/u/540359?v=3","gravatar_id":"","url":"https://api.github.com/users/cestella","html_url":"https://github.com/cestella","followers_url":"https://api.github.com/users/cestella/followers","following_url":"https://api.github.com/users/cestella/following{/other_user}","gists_url":"https://api.github.com/users/cestella/gists{/gist_id}","starred_url":"https://api.github.com/users/cestella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cestella/subscriptions","organizations_url":"https://api.github.com/users/cestella/orgs","repos_url":"https://api.github.com/users/cestella/repos","events_url":"https://api.github.com/users/cestella/events{/privacy}","received_events_url":"https://api.github.com/users/cestella/received_events","type":"User","site_admin":false},"created_at":"2016-12-22T23:10:51Z","updated_at":"2016-12-22T23:10:51Z","body":"One last bug here.  I was actually right originally to insist on just monotonic increasing, rather than strict increasing for the bins.  Consider the situation where I create a distribution of a single value `d`.  Every percentile will be `d`.  In that case I would want the function to return `0` for `x` where `x <= d` and the number of bins for `x` where `x > d`.\r\n\r\nI created a test to validate this behavior."}}
{"actor":{"display_login":"cestella"}}