{"action":"closed","number":144,"pull_request":{"url":"https://api.github.com/repos/JuliaStats/Distributions.jl/pulls/144","id":8371110,"node_id":"MDExOlB1bGxSZXF1ZXN0ODM3MTExMA==","html_url":"https://github.com/JuliaStats/Distributions.jl/pull/144","diff_url":"https://github.com/JuliaStats/Distributions.jl/pull/144.diff","patch_url":"https://github.com/JuliaStats/Distributions.jl/pull/144.patch","issue_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/issues/144","number":144,"state":"closed","locked":false,"title":"Add basic location-scale family support","user":{"login":"johnmyleswhite","id":22064,"node_id":"MDQ6VXNlcjIyMDY0","avatar_url":"https://avatars0.githubusercontent.com/u/22064?v=4","gravatar_id":"","url":"https://api.github.com/users/johnmyleswhite","html_url":"https://github.com/johnmyleswhite","followers_url":"https://api.github.com/users/johnmyleswhite/followers","following_url":"https://api.github.com/users/johnmyleswhite/following{/other_user}","gists_url":"https://api.github.com/users/johnmyleswhite/gists{/gist_id}","starred_url":"https://api.github.com/users/johnmyleswhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnmyleswhite/subscriptions","organizations_url":"https://api.github.com/users/johnmyleswhite/orgs","repos_url":"https://api.github.com/users/johnmyleswhite/repos","events_url":"https://api.github.com/users/johnmyleswhite/events{/privacy}","received_events_url":"https://api.github.com/users/johnmyleswhite/received_events","type":"User","site_admin":false},"body":"This adds an initial draft of support for location-scale families of univariate distribution. This makes it possible to rescale and relocate univariate distributions using scalar arithmetic, giving things like `d1 = Normal(0, 1) + 3` and `d2 = 3 * Uniform(0, 1) + 11`.\n\nThe basic principle is simple: unless there is a clear way in which changing the location or scale of a distribution produces another distribution of the same type, we create an ad hoc `UnivariateLocationScaleFamily` type, which maintains a separate `location` and `scale` parameter. Thus, one has two ways of writing some distributions. for example, the two distributions below are meant to be identical:\n- `UnivariateLocationScaleFamily(Normal(0, 1), 2.0, 2.0)`\n- `Normal(2.0, 2.0)`\n\nBut special cases are handled as needed, so that `3 * Normal(0, 1)` gives `Normal(0, 3)` rather than the less efficient `UnivariateLocationScaleFamily(Normal(0, 1), 0.0, 3.0)`.\n","created_at":"2013-09-17T00:22:14Z","updated_at":"2018-09-19T21:31:20Z","closed_at":"2018-09-19T21:31:20Z","merged_at":null,"merge_commit_sha":"2406f5f1d689fba675c77bb24a294ce48a04a53b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":18864804,"node_id":"MDU6TGFiZWwxODg2NDgwNA==","url":"https://api.github.com/repos/JuliaStats/Distributions.jl/labels/new-func","name":"new-func","color":"009800","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/pulls/144/commits","review_comments_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/pulls/144/comments","review_comment_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/issues/144/comments","statuses_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/statuses/fc37890dea7614f9d5836b152d153b2956962d37","head":{"label":"JuliaStats:jmw/lsf","ref":"jmw/lsf","sha":"fc37890dea7614f9d5836b152d153b2956962d37","user":{"login":"JuliaStats","id":2761531,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI3NjE1MzE=","avatar_url":"https://avatars2.githubusercontent.com/u/2761531?v=4","gravatar_id":"","url":"https://api.github.com/users/JuliaStats","html_url":"https://github.com/JuliaStats","followers_url":"https://api.github.com/users/JuliaStats/followers","following_url":"https://api.github.com/users/JuliaStats/following{/other_user}","gists_url":"https://api.github.com/users/JuliaStats/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaStats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaStats/subscriptions","organizations_url":"https://api.github.com/users/JuliaStats/orgs","repos_url":"https://api.github.com/users/JuliaStats/repos","events_url":"https://api.github.com/users/JuliaStats/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaStats/received_events","type":"Organization","site_admin":false},"repo":{"id":6619192,"node_id":"MDEwOlJlcG9zaXRvcnk2NjE5MTky","name":"Distributions.jl","full_name":"JuliaStats/Distributions.jl","private":false,"owner":{"login":"JuliaStats","id":2761531,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI3NjE1MzE=","avatar_url":"https://avatars2.githubusercontent.com/u/2761531?v=4","gravatar_id":"","url":"https://api.github.com/users/JuliaStats","html_url":"https://github.com/JuliaStats","followers_url":"https://api.github.com/users/JuliaStats/followers","following_url":"https://api.github.com/users/JuliaStats/following{/other_user}","gists_url":"https://api.github.com/users/JuliaStats/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaStats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaStats/subscriptions","organizations_url":"https://api.github.com/users/JuliaStats/orgs","repos_url":"https://api.github.com/users/JuliaStats/repos","events_url":"https://api.github.com/users/JuliaStats/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaStats/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/JuliaStats/Distributions.jl","description":"A Julia package for probability distributions and associated functions.","fork":false,"url":"https://api.github.com/repos/JuliaStats/Distributions.jl","forks_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/forks","keys_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/teams","hooks_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/hooks","issue_events_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/issues/events{/number}","events_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/events","assignees_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/assignees{/user}","branches_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/branches{/branch}","tags_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/tags","blobs_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/languages","stargazers_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/stargazers","contributors_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/contributors","subscribers_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/subscribers","subscription_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/subscription","commits_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/issues/comments{/number}","contents_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/contents/{+path}","compare_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/merges","archive_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/downloads","issues_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/issues{/number}","pulls_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/labels{/name}","releases_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/releases{/id}","deployments_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/deployments","created_at":"2012-11-09T20:01:33Z","updated_at":"2018-09-19T18:20:04Z","pushed_at":"2018-09-19T20:15:34Z","git_url":"git://github.com/JuliaStats/Distributions.jl.git","ssh_url":"git@github.com:JuliaStats/Distributions.jl.git","clone_url":"https://github.com/JuliaStats/Distributions.jl.git","svn_url":"https://github.com/JuliaStats/Distributions.jl","homepage":"","size":3102,"stargazers_count":332,"watchers_count":332,"language":"Julia","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":184,"mirror_url":null,"archived":false,"open_issues_count":149,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":184,"open_issues":149,"watchers":332,"default_branch":"master"}},"base":{"label":"JuliaStats:master","ref":"master","sha":"748ddb476854396c022ff9fbb31bf974bbf8f7e9","user":{"login":"JuliaStats","id":2761531,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI3NjE1MzE=","avatar_url":"https://avatars2.githubusercontent.com/u/2761531?v=4","gravatar_id":"","url":"https://api.github.com/users/JuliaStats","html_url":"https://github.com/JuliaStats","followers_url":"https://api.github.com/users/JuliaStats/followers","following_url":"https://api.github.com/users/JuliaStats/following{/other_user}","gists_url":"https://api.github.com/users/JuliaStats/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaStats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaStats/subscriptions","organizations_url":"https://api.github.com/users/JuliaStats/orgs","repos_url":"https://api.github.com/users/JuliaStats/repos","events_url":"https://api.github.com/users/JuliaStats/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaStats/received_events","type":"Organization","site_admin":false},"repo":{"id":6619192,"node_id":"MDEwOlJlcG9zaXRvcnk2NjE5MTky","name":"Distributions.jl","full_name":"JuliaStats/Distributions.jl","private":false,"owner":{"login":"JuliaStats","id":2761531,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI3NjE1MzE=","avatar_url":"https://avatars2.githubusercontent.com/u/2761531?v=4","gravatar_id":"","url":"https://api.github.com/users/JuliaStats","html_url":"https://github.com/JuliaStats","followers_url":"https://api.github.com/users/JuliaStats/followers","following_url":"https://api.github.com/users/JuliaStats/following{/other_user}","gists_url":"https://api.github.com/users/JuliaStats/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaStats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaStats/subscriptions","organizations_url":"https://api.github.com/users/JuliaStats/orgs","repos_url":"https://api.github.com/users/JuliaStats/repos","events_url":"https://api.github.com/users/JuliaStats/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaStats/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/JuliaStats/Distributions.jl","description":"A Julia package for probability distributions and associated functions.","fork":false,"url":"https://api.github.com/repos/JuliaStats/Distributions.jl","forks_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/forks","keys_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/teams","hooks_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/hooks","issue_events_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/issues/events{/number}","events_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/events","assignees_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/assignees{/user}","branches_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/branches{/branch}","tags_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/tags","blobs_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/languages","stargazers_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/stargazers","contributors_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/contributors","subscribers_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/subscribers","subscription_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/subscription","commits_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/issues/comments{/number}","contents_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/contents/{+path}","compare_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/merges","archive_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/downloads","issues_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/issues{/number}","pulls_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/labels{/name}","releases_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/releases{/id}","deployments_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/deployments","created_at":"2012-11-09T20:01:33Z","updated_at":"2018-09-19T18:20:04Z","pushed_at":"2018-09-19T20:15:34Z","git_url":"git://github.com/JuliaStats/Distributions.jl.git","ssh_url":"git@github.com:JuliaStats/Distributions.jl.git","clone_url":"https://github.com/JuliaStats/Distributions.jl.git","svn_url":"https://github.com/JuliaStats/Distributions.jl","homepage":"","size":3102,"stargazers_count":332,"watchers_count":332,"language":"Julia","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":184,"mirror_url":null,"archived":false,"open_issues_count":149,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":184,"open_issues":149,"watchers":332,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JuliaStats/Distributions.jl/pulls/144"},"html":{"href":"https://github.com/JuliaStats/Distributions.jl/pull/144"},"issue":{"href":"https://api.github.com/repos/JuliaStats/Distributions.jl/issues/144"},"comments":{"href":"https://api.github.com/repos/JuliaStats/Distributions.jl/issues/144/comments"},"review_comments":{"href":"https://api.github.com/repos/JuliaStats/Distributions.jl/pulls/144/comments"},"review_comment":{"href":"https://api.github.com/repos/JuliaStats/Distributions.jl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JuliaStats/Distributions.jl/pulls/144/commits"},"statuses":{"href":"https://api.github.com/repos/JuliaStats/Distributions.jl/statuses/fc37890dea7614f9d5836b152d153b2956962d37"}},"author_association":"MEMBER","merged":false,"mergeable":false,"rebaseable":false,"mergeable_state":"dirty","merged_by":null,"comments":6,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":162,"deletions":2,"changed_files":12}}
{"actor":{"display_login":"matbesancon"}}