{"action":"created","issue":{"url":"https://api.github.com/repos/JelleAalbers/blueice/issues/7","repository_url":"https://api.github.com/repos/JelleAalbers/blueice","labels_url":"https://api.github.com/repos/JelleAalbers/blueice/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/JelleAalbers/blueice/issues/7/comments","events_url":"https://api.github.com/repos/JelleAalbers/blueice/issues/7/events","html_url":"https://github.com/JelleAalbers/blueice/issues/7","id":175484353,"number":7,"title":"Binned likelihoods, pdfs","user":{"login":"kdund","id":16839337,"avatar_url":"https://avatars.githubusercontent.com/u/16839337?v=3","gravatar_id":"","url":"https://api.github.com/users/kdund","html_url":"https://github.com/kdund","followers_url":"https://api.github.com/users/kdund/followers","following_url":"https://api.github.com/users/kdund/following{/other_user}","gists_url":"https://api.github.com/users/kdund/gists{/gist_id}","starred_url":"https://api.github.com/users/kdund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdund/subscriptions","organizations_url":"https://api.github.com/users/kdund/orgs","repos_url":"https://api.github.com/users/kdund/repos","events_url":"https://api.github.com/users/kdund/events{/privacy}","received_events_url":"https://api.github.com/users/kdund/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JelleAalbers/blueice/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"kdund","id":16839337,"avatar_url":"https://avatars.githubusercontent.com/u/16839337?v=3","gravatar_id":"","url":"https://api.github.com/users/kdund","html_url":"https://github.com/kdund","followers_url":"https://api.github.com/users/kdund/followers","following_url":"https://api.github.com/users/kdund/following{/other_user}","gists_url":"https://api.github.com/users/kdund/gists{/gist_id}","starred_url":"https://api.github.com/users/kdund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdund/subscriptions","organizations_url":"https://api.github.com/users/kdund/orgs","repos_url":"https://api.github.com/users/kdund/repos","events_url":"https://api.github.com/users/kdund/events{/privacy}","received_events_url":"https://api.github.com/users/kdund/received_events","type":"User","site_admin":false},"assignees":[{"login":"kdund","id":16839337,"avatar_url":"https://avatars.githubusercontent.com/u/16839337?v=3","gravatar_id":"","url":"https://api.github.com/users/kdund","html_url":"https://github.com/kdund","followers_url":"https://api.github.com/users/kdund/followers","following_url":"https://api.github.com/users/kdund/following{/other_user}","gists_url":"https://api.github.com/users/kdund/gists{/gist_id}","starred_url":"https://api.github.com/users/kdund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdund/subscriptions","organizations_url":"https://api.github.com/users/kdund/orgs","repos_url":"https://api.github.com/users/kdund/repos","events_url":"https://api.github.com/users/kdund/events{/privacy}","received_events_url":"https://api.github.com/users/kdund/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-09-07T11:59:40Z","updated_at":"2016-09-08T09:32:41Z","closed_at":null,"body":"I am looking at adding functionality for binned likelihoods in blueice (the first wimp analysis will probably be binned, with bins derived from calibration data)\r\nAs the statistics available greatly over the analysis range, I believe bin size and shape should be as flexible as possible— my preference would be to use a function of the event data that returns a bin index.\r\n\r\nMy first idea was to simply re-purpose the XENONSource- add an analysis variable called \"bin_index\", compute that for each event, and use the index as an analysis variable. However, as both Source and Likelihood classes would need modification, my current approach is to create a BinnedSource, (Model) and Likelihood class inheriting from the un-binned counterparts and re-implementing what is needed. Does this sound sensible? "},"comment":{"url":"https://api.github.com/repos/JelleAalbers/blueice/issues/comments/245544504","html_url":"https://github.com/JelleAalbers/blueice/issues/7#issuecomment-245544504","issue_url":"https://api.github.com/repos/JelleAalbers/blueice/issues/7","id":245544504,"user":{"login":"kdund","id":16839337,"avatar_url":"https://avatars.githubusercontent.com/u/16839337?v=3","gravatar_id":"","url":"https://api.github.com/users/kdund","html_url":"https://github.com/kdund","followers_url":"https://api.github.com/users/kdund/followers","following_url":"https://api.github.com/users/kdund/following{/other_user}","gists_url":"https://api.github.com/users/kdund/gists{/gist_id}","starred_url":"https://api.github.com/users/kdund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdund/subscriptions","organizations_url":"https://api.github.com/users/kdund/orgs","repos_url":"https://api.github.com/users/kdund/repos","events_url":"https://api.github.com/users/kdund/events{/privacy}","received_events_url":"https://api.github.com/users/kdund/received_events","type":"User","site_admin":false},"created_at":"2016-09-08T09:32:41Z","updated_at":"2016-09-08T09:32:41Z","body":"Hi, Jelle\r\nI'll mail you with some (internal) background for why I think arbitrary bins could be helpful for us- working on a possible implementation now. Otherwise, I agree that the above method is sensible. "}}
{"actor":{"display_login":"kdund"}}