{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/issues/243","repository_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl","labels_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/issues/243/labels{/name}","comments_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/issues/243/comments","events_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/issues/243/events","html_url":"https://github.com/JuliaStats/StatsBase.jl/pull/243","id":210312250,"number":243,"title":"Add Base.norm, normalize and normalize! for Histogram","user":{"login":"oschulz","id":546147,"avatar_url":"https://avatars1.githubusercontent.com/u/546147?v=3","gravatar_id":"","url":"https://api.github.com/users/oschulz","html_url":"https://github.com/oschulz","followers_url":"https://api.github.com/users/oschulz/followers","following_url":"https://api.github.com/users/oschulz/following{/other_user}","gists_url":"https://api.github.com/users/oschulz/gists{/gist_id}","starred_url":"https://api.github.com/users/oschulz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oschulz/subscriptions","organizations_url":"https://api.github.com/users/oschulz/orgs","repos_url":"https://api.github.com/users/oschulz/repos","events_url":"https://api.github.com/users/oschulz/events{/privacy}","received_events_url":"https://api.github.com/users/oschulz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":26,"created_at":"2017-02-26T11:47:16Z","updated_at":"2017-03-16T05:44:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/pulls/243","html_url":"https://github.com/JuliaStats/StatsBase.jl/pull/243","diff_url":"https://github.com/JuliaStats/StatsBase.jl/pull/243.diff","patch_url":"https://github.com/JuliaStats/StatsBase.jl/pull/243.patch"},"body":"Addresses #231.\r\n\r\nQuestion: how do define the norm for histograms with potentially negative entries? While these don't occur naturally, one still encounters them from time to time the result of comparing/subtracting two histograms (e.g. signal - background). Take the abs/norm of each weight before integration? Or take abs/norm of the regular integral?"},"comment":{"url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/issues/comments/286963620","html_url":"https://github.com/JuliaStats/StatsBase.jl/pull/243#issuecomment-286963620","issue_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/issues/243","id":286963620,"user":{"login":"oschulz","id":546147,"avatar_url":"https://avatars1.githubusercontent.com/u/546147?v=3","gravatar_id":"","url":"https://api.github.com/users/oschulz","html_url":"https://github.com/oschulz","followers_url":"https://api.github.com/users/oschulz/followers","following_url":"https://api.github.com/users/oschulz/following{/other_user}","gists_url":"https://api.github.com/users/oschulz/gists{/gist_id}","starred_url":"https://api.github.com/users/oschulz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oschulz/subscriptions","organizations_url":"https://api.github.com/users/oschulz/orgs","repos_url":"https://api.github.com/users/oschulz/repos","events_url":"https://api.github.com/users/oschulz/events{/privacy}","received_events_url":"https://api.github.com/users/oschulz/received_events","type":"User","site_admin":false},"created_at":"2017-03-16T05:44:17Z","updated_at":"2017-03-16T05:44:17Z","body":"> E.g. when a Histogram is passed to a plotting package, it would have to either :pdf or :density normalized it to be meaningful\r\n\r\nIn my experience, that's not the case: Quite often, you actually do want to plot raw counts. Normalization is not always applied before plotting (except when you have inhomogeneous binning, then plotting raw counts is only useful for cross-checks). "}}
{"actor":{"display_login":"oschulz"}}